I am having trouble trying to get an ion-content element to adjust correctly to the ios7 statusbar. It is a sidemenu app that includes the nav bar, ion-header-bar as a subheader, and the ion-content.
I have the device, statusbar, and ionic keyboard plugins installed and they are recognized in $ionicPlatform.ready.
The ion-content starts at the three buttons, but as you can see it is getting cut off by a height of the status bar:
Running Cordova 3.5.0, Ionic 1.0.0-beta.9, Xcode 5.1. This problem doesn’t exist in desktop Safari or Chrome
I would need an additional 20px for the .has-subheader.eventContent to adjust for the statusbar…is there any way to include that besides hardcoding an additional offset?
It seems to be causing an issue with custom subheaders. The .has-subheader.eventContent css selector selects the ion-content, so I am already trying to push it down because of the bigger subheader bar of height 75px.
The default size of the subheader is 44px, and the .has-subheader defaults to “top: 88px” which renders fine with the status bar in the emulator. However, once I change the subheader height to a custom height the ion-content doesn’t seem to respect the status bar height. Everything loads fine in desktop browsers but just not in my iOS emulator for some reason…
Would you be able to try and reproduce in an iOS simulator?