IFRAME page forum and awesome shortcode improvements:
[iFrameSizer][Host page: w3all_phpbb_iframe] Deprecated: 'scrollCallback' has been renamed 'onScroll'. The old method will be removed in the next major version.
the js code on page forum (so related same shortcode code) require to be updated to the new way the resizer lib will require.
It just require to search and replace/substitute
scrollCallback
into
page-forum and /views/
wp_w3all_phpbb_iframe_short.php
substituting it as suggested:
onScroll
I note also a problem, that need to be resolved:
let say we have an iframe shortcoded that we place into a page like this:
https://www.axew3.com/w3/2022/02/the-aw ... shortcode/
on this wp post, you see the page load reposition to 100 px top and not where the iframe is bacause the
top_gap param has not been set into the shortcode.
This is exactly what i want (not exactly, i do not want nor 100px of scroll, i would not have scroll at all). SO it present a problem:
since the top gap param has not been set (because i do not want this page positioned to the iframe when load), when i click into an iframe link, as obvious, the page scroll to top (because top_gap default value if not set is 100(px)).
Another param for this shortcode will be added to manage this aspect.
The param
scroll_default has been added so that when used and set to no
scroll_default="no"
avoid the iframe to scroll
https://www.axew3.com/w3/2022/02/the-aw ... shortcode/