Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery Mobile height issue for iPhone web app, assumes page height of 480 instead of 460

jQuery Mobile seems to calculate the page height upon initializing, but since we enable the status bar in our app, JQM assumes we have 480 px available instead of 460 px.

We're building mobile web apps for iPhones.

We're using JQM 1.1.1 and PhoneGap 2.0.

Any idea how to override the JQM setting? We tried manually setting the page height to 460 px ourselves (after JQM defines the page height), but this doesn't work.

like image 983
Crashalot Avatar asked Jan 28 '26 18:01

Crashalot


1 Answers

Turns out it wasn't a JQM issue. We had 'height=device-height' in our viewport meta tag. Removing this solved the problem.

like image 127
Crashalot Avatar answered Jan 30 '26 10:01

Crashalot



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!