Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone/Mobile Safari: Getting a reliable viewport height

Is there a way to get a reliable viewport height value from mobile Safari? I've been struggling for days now and I know that I am not the only one with this problem.
Even toolkits like http://responsejs.com didn't help me. How to Sencha Touch or Kendo UI get the screen height, does somebody know that? Is that reliable?

like image 665
Sven Avatar asked Jan 18 '26 11:01

Sven


1 Answers

I always use this: http://docs.sencha.com/touch/2-1/#!/api/Ext.viewport.Default-method-getWindowHeight

Ext.Viewport.getWindowHeight(); 
like image 189
ThinkFloyd Avatar answered Jan 21 '26 01:01

ThinkFloyd



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!