Page 1 of 1

iFrame issue when shrinking page

Posted: Mon Sep 12, 2016 9:50 pm
by icemaker
hi,
I have installed W3all 1.5.0 on my WP 4.6.1 with Phpbb 3.1.9.
my issue is in the iFrame when the page shown is bigger than the previous page (more posts or subforums) the frame resizes correctly, but if the new page is smaller than the previous the frame does not resize, that causes a big empty space at the end of the page.
Any clues of what can cause this?
i use digi theme not prosilver.
FYI the adm resize works as expected.

Re: iFrame issue when shrinking page

Posted: Mon Sep 12, 2016 10:28 pm
by axew3
i've see it in the past with some theme. Not had going deep to see if i can understand that behavior (due to some html/css or pure resizer js iframe code?) at this time, where i can find out the theme you mention? So as soon i can i will try to take a look and to understand what it was.

Re: iFrame issue when shrinking page

Posted: Tue Sep 13, 2016 11:09 am
by icemaker

Re: iFrame issue when shrinking page

Posted: Tue Sep 13, 2016 9:03 pm
by axew3
the complete solution for any case reference:
http://davidjbradshaw.github.io/iframe- ... tionmethod

so to be resolve you can do this:

open your created WP_w3all iframe WP page for phpBB:

wp-content/themes/YourThemeName/page-(forum or board etc).php

search for this line:

Code: Select all

targetOrigin: '".$w3urlscheme."://".$w3all_target_server."',
immediately after add the follow:

Code: Select all

heightCalculationMethod:'bodyScroll',
save. All work ok now in this way on my test with digi phpBB theme. As well so we can assume on others situations where iframe not resize bottom as needed. Change into another value and test if still not fit your needed.