Reputation: 3162
I am building a small app using PhoneGap HTML/CSS. Now my problem is that position:fixed
(used on a top bar) works on iOS 5 but not on iOS 4. Someone knows a fix for this?
Upvotes: 0
Views: 3504
Reputation: 2368
Position:fixed doesn't work on iOS before version 5 and some other mobile browsers. There are a lot of solutions out there for this, but one that I can personally recommend is GloveBox written by Nitobi's own Jesse MacFadyen. It lets you define areas that are scrollable, and I believe in your case that would be the main content, while the top bar isn't scrollable. Another advantage of this approach is that the user won't be able to "scroll out" of your app's view as if it were a normal website on Mobile Safari.
Upvotes: 1