Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+3 votes
594 views
in Q2A Core by

I am using the 1.8beta with the nice SnowLight theme on my site and are tying to add some additional functionality to it by adding pages with iframe content.

I am pretty clueless with this kind of stuff, but with this jquery code I found it seems to work with some web-apps hosted on the same server (including partial dynamic resizing):

<iframe src="https://example.com/example" width="100%" hight="100%" class="selfossIframe" frameborder="0" scrolling="0" marginhight="0" marginwidth="0">
<p>example</p>
</iframe>

<script type="text/javascript" language="javascript">
$('.exampleIframe').css('height', $(window).height()+'px');
</script>

What I don't like though is that there seems to be no way to turn off the Q2A sidebar for some of these iframe pages, and that the Q2A pages seems to have a fixed height that results in always duplicated scroll-bars.

I have seen examples of iframe embedding that works really well (Nextcloud external pages), i.e. full dynamic resizing with only one common scollbar, so it seems there is a way to achieve this... any suggestions?

Q2A version: 1.8beta1

Please log in or register to answer this question.

...