Page 1 of 1

HTML size in popup not displaying correctly in IOS app tester

Posted: Mon Feb 09, 2015 9:13 pm
by Aeneas McBurney

I am using this code to size HTML within popup to the screen height.

var documentHeight = jQuery(document).height()-200;

Image

It works on Android
Image

but not iOS
Image


HTML size in popup not displaying correctly in IOS app tester

Posted: Tue Feb 10, 2015 6:00 am
by Yurii Orishchuk

Hi Aeneas,

Please check this topic:

http://ryanve.com/lab/dimensions/

Regards.


HTML size in popup not displaying correctly in IOS app tester

Posted: Tue Feb 10, 2015 7:04 am
by Aeneas McBurney

Hi,

Thanks but the issue is not getting the dimensions as they are coming back correctly from jQuery(document).height() for each device. However the iframe size is behaving different when applying to the height property.

Thanks,
Aeneas


HTML size in popup not displaying correctly in IOS app tester

Posted: Wed Feb 11, 2015 5:30 am
by Yurii Orishchuk

Hi Aeneas,

Sorry did not see that code in screen shot..(it's better to provide it with text).

Iframe height attribute should be passed without "px" postfix. Just number.

See details here: http://www.w3schools.com/tags/att_ifr...

Regards.


HTML size in popup not displaying correctly in IOS app tester

Posted: Wed Feb 11, 2015 5:33 am
by Aeneas McBurney

Sorry when I copied as text it didn't appear as converted to iframe html.

I have tried without px and get same outcome in iOS.

Thanks,
Aeneas


HTML size in popup not displaying correctly in IOS app tester

Posted: Wed Feb 11, 2015 10:17 am
by Illya Stepanov

Hi Aeneas - So do you getting now the needed result or?


HTML size in popup not displaying correctly in IOS app tester

Posted: Wed Feb 11, 2015 6:22 pm
by Aeneas McBurney

Hi, no nothing has changed so still same result in iOS tester with frame being too big for screen


HTML size in popup not displaying correctly in IOS app tester

Posted: Fri Feb 13, 2015 2:04 am
by Yurii Orishchuk

Hi Aeneas,

Please use WEINRE debugger to see what exactly height attribute set for your iframe html element.

http://devcenter.appery.io/documentat...

Regards.