Onsen UI and PhoneGap/Cordova on iOS 7

iOS 7 comes with new UI design that the application now run in full screen with the status bar overlay the application.

If you run current Onsen UI version (0.6), you will see something like this:

Solution

The solution is to increase the height of the navigation bar and pad the top section.

Below is the code to solve this problem.

index.html

css/ios7.css

.topcoat-navigation-bar { 
height: 60px;
padding-top: 20px;
}

Result

Below is what it look like after applying the code.


Originally published at onsen.io on January 23, 2014.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.