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

iFrame as Layer, control responsive zoom on mobile
https://www.tinywebgallery.com/forum/viewtopic.php?f=21&t=3887
Page 1 of 1

Author:  adrianb11 [ 18. Jun 2015, 14:51 ]
Post subject:  iFrame as Layer, control responsive zoom on mobile

I as using the show_iframe_as_layer option and it works great on the desktop.

My wordpress site is responsive and on a mobile device, when the layer is displayed it zooms in the iFrame too far. I still want to be able to zoom the layer on mobile devices, but not as much as it automatically does. What is the best way to control this zoom only on mobile devices and leave the desktop exactly as it is?

Author:  TinyWebGallery [ 18. Jun 2015, 18:36 ]
Post subject:  Re: iFrame as Layer, control responsive zoom on mobile

The iframe height and width is set to 98%. Is the page inside the iframe also responsive? So maybe it simply does not fit there.

Best, Michael

Author:  adrianb11 [ 19. Jun 2015, 01:09 ]
Post subject:  Re: iFrame as Layer, control responsive zoom on mobile

Thanks for your prompt reply.

When I view the content of the iFrame standalone (directly outside of the iFrame), on my iPhone. The content is super small and not readable. However when I view the content as "iFrame as Layer", it is large and zoomed in. It is like the Advanced iFrame has zoomed the contents of the layer the same amount as the parent wordpress site content.

Has the Advanced iFrame zoomed the content? I put breakpoints all through the ai.js to try and find where the zooming was taking place, but could not locate where the zooming was taking place.

Author:  TinyWebGallery [ 19. Jun 2015, 19:08 ]
Post subject:  Re: iFrame as Layer, control responsive zoom on mobile

No - the problem is that if you call pages standalone they are zoomed by the browsers. Inside an iframe this is not the case.
So it seems the content is not really responsive.

So actually what is the better way? Because a not readable page seems not better for me...

Best, Michael

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