Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum https://www.tinywebgallery.com/forum/ |
|
iFrame of external domain does not resize correctly https://www.tinywebgallery.com/forum/viewtopic.php?f=21&t=3974 |
Page 1 of 1 |
Author: | trwilliams [ 13. Nov 2015, 21:01 ] |
Post subject: | iFrame of external domain does not resize correctly |
Hi, I have purchased the pro version of your plugin and was able to successfully pull in a responsive page from an external domain (Act-On). It's 90% of the way there, but I have one small issue. When the page loads, the iframe's height is perfect. When I resize the browser, the iframe doesn't adjust correctly for the responsive content inside. If I then refresh again, the iframe adjusts accordingly. This is the shortcode I'm using: [advanced_iframe securitykey="............." use_shortcode_attributes_only="true" src="//marketconnectionsinc.actonsoftware.com/acton/media/6310/test-responsive-page" width="100%" height="" scrolling="no" id="advanced_iframe" hide_page_until_loaded_external="true" enable_external_height_workaround="true"] Under the external workaround tab, I have these settings: Resize remote iframe to content height: yes Keep overflow:hidden after resize: yes Hide the iframe until it is completely modified: yes Write css directly: no Then, in the external domain, I have added this script: <script> var updateIframeHeight = "true"; var keepOverflowHidden = "false"; var additional_styles_wrapper_div="overflow:auto"; </script> <script src="http://marketconnectionsinc.emorydayclients.com/wp-content/plugins/advanced-iframe/js/ai_external.js"></script> What am I still missing? I know I have to be close, but can't seem to figure it out. The test URL is: http://marketconnectionsinc.emorydayclients.com/test-page/ Thank you! Tana |
Author: | TinyWebGallery [ 14. Nov 2015, 21:52 ] |
Post subject: | Re: iFrame of external domain does not resize correctly |
Hi, you have to enable the option responsive iframe in the administration and save the settings again. The reason is that this setting does track changes of the browser window and this does then trigger the height calculation again. Best, Michael |
Author: | trwilliams [ 15. Nov 2015, 03:13 ] |
Post subject: | Re: iFrame of external domain does not resize correctly |
I knew I was close! I guess I'd just been staring at it for too long. Thanks so much, it works perfectly now! I appreciate the help. Thanks again, Tana |
Author: | TinyWebGallery [ 15. Nov 2015, 12:22 ] |
Post subject: | Re: iFrame of external domain does not resize correctly |
. |
Page 1 of 1 | All times are UTC + 1 hour [ DST ] |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |