v3 code: new way to scroll iframe
Posted: Wed Feb 27, 2019 10:05 am
I've think to resolve finally this long time now, then an easy solution come out.
The problem is the iframe and the way it scroll (as is at date of this post the online v3 code):
it scroll phpBB page to a specified position, before the reload of the requested page, where on overall_footer.html added code there is this line:
How to work around this?
The solution seem possible inverting things: as you see actually on this online example, the page not scroll immediately, but after the iframe loaded, and with smooth effect.
The applied trick on this online example need to be optimized, but you can in the while report any issue testing may reporting impressions about. Yeah, should be cool
The problem is the iframe and the way it scroll (as is at date of this post the online v3 code):
it scroll phpBB page to a specified position, before the reload of the requested page, where on overall_footer.html added code there is this line:
Code: Select all
if ('parentIFrame' in window) window.parentIFrame.scrollTo(0,50); // change 50 to another value may 0 or 100 or 500. Top distance gap in px when page scroll top
The solution seem possible inverting things: as you see actually on this online example, the page not scroll immediately, but after the iframe loaded, and with smooth effect.
The applied trick on this online example need to be optimized, but you can in the while report any issue testing may reporting impressions about. Yeah, should be cool