Crashalot
Crashalot

Reputation: 34503

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.

Upvotes: 3

Views: 1439

Answers (1)

Crashalot
Crashalot

Reputation: 34503

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

Upvotes: 4

Related Questions