Get iPad innerHeight of page without toolbar

Hello,


I need to get innerHeight on iPad 2 display. So I need viewport of browser.


I've tried screen.height and on portrait mode returns me 1024, then tried screen.innerHeight, but returns undefined.

Then tried window.height and returns undefined also, but window.innerHeight returns wrong value.. For me 645px.


I'm using Safari to browse, and I guess toolbar isn't more than 100px.


Best regards.

Posted on Apr 18, 2013 12:36 AM

Reply
2 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Get iPad innerHeight of page without toolbar

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.