Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

Resizing iFrame on Display of Hidden content
https://www.tinywebgallery.com/forum/viewtopic.php?f=21&t=4403
Page 1 of 1

Author:  skopit [ 29. Aug 2017, 21:00 ]
Post subject:  Resizing iFrame on Display of Hidden content

I am including an external page in my iFrame that has 2 div sections, only one of which is displayed at a time. The user can select to see the other section via dropdown, at which point the first div is marked hidden and the second larger div displays. The problem is obviously that the iFrame was already sized based on the initial div that was displayed, which was smaller.

Any ideas on how to get it to resize?

I can have my external content provider code anything that will help resolve the issue.

Thanks for your help.

Author:  TinyWebGallery [ 30. Aug 2017, 21:27 ]
Post subject:  Re: Resizing iFrame on Display of Hidden content

Yes. The solution is to use

resize on element resize:
See a working demo here:
http://www.tinywebgallery.com/blog/advanced-iframe/advanced-iframe-pro-demo/resize-on-element-resize

Best, Michael

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/