iFrame issue when shrinking page

icemaker
Posts: 3
Joined: Mon Sep 12, 2016 8:40 pm

iFrame issue when shrinking page

Post 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.
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: iFrame issue when shrinking page

Post 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.
icemaker
Posts: 3
Joined: Mon Sep 12, 2016 8:40 pm

Re: iFrame issue when shrinking page

Post by icemaker »

User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: iFrame issue when shrinking page

Post 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.
Post Reply