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

IFRAME not responsive on IOS but works fine on Android
https://www.tinywebgallery.com/forum/viewtopic.php?f=21&t=5698
Page 1 of 1

Author:  Asle [ 23. Jan 2019, 11:17 ]
Post subject:  IFRAME not responsive on IOS but works fine on Android

All my included iframes work fine now on Android in all browsers but fails on IOS, even on Chrome. The iframe is not responsive at all.

I tried this in CSS but it did no difference:

Code:
iframe {
        width: 1px;
        min-width: 100%;
        *width: 100%;
    }

I guess I am not the only one with this problem.
If you check this page on Android and IOS you see the difference (but works fine in mobile simulator in Chrome)

https://biofokus.no/narin2/

Author:  Asle [ 23. Jan 2019, 21:37 ]
Post subject:  Re: IFRAME not responsive on IOS but works fine on Android

I think I maybe solved it this way. Added to the IFRAME code:

Code:
enable_ios_mobile_scolling="false" scrolling="no"


Does it sound reasonable that this helped with IOS?

Author:  TinyWebGallery [ 26. Jan 2019, 22:54 ]
Post subject:  Re: IFRAME not responsive on IOS but works fine on Android

enable_ios_mobile_scolling="false" is the default. Therefore this should not do anything.

Normally
min-width: 100%;
in ios is for some scenarios a working solution.

can you check if the scrolling alone does anything?

if this your current setup because when I'm on your page with my ipad it does scale + it does scroll.

Best, Michael

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