-
Notifications
You must be signed in to change notification settings - Fork 881
option for ios7 header padding for statusbar overlay #654
Conversation
Hey @krisrak I'm not 100% sure I like this. The developer should be handling it in Cordova (IMO), not in the framework. |
In Cordova, user can control whether they want overlayed statusbar like in ios7 or static statusbar like in ios6 and before, if they choose overlayed statusbar, then the app UI should have a 20px padding, something user has to do in UI. Ionic does the same. Either way, this Afui property is not the only way, the user can also manually add CSS to get this padding, which can be documented in tips and tricks. |
Sorry...backtracking on my thoughts on this. You are 100% correct, this should be here. I will merge it. |
option for ios7 header padding for statusbar overlay
I think we also need this option for iOS8 |
@dillix We have tested iOS8 yet. Once it gets closer to a GM we will. If someone else wants to test it and submit any updates, they can. |
I found 2 issues in krisrak patch:
Is there a way to fix them? I use cordova-cli 3.5 and I want use $.ui.overlayStatusbar instead cordova StatusBar plugin, because with plugin I have issues with admob and other stuff... |
I just checked in a fix that should handle all of this, including setting $.os.ios7 true for ios 8 |
Now statusbar is ok, but I have problems with footer: |
Yep - let's just say iOS 8 is buggy as heck right now :). I installed it and saw a lot of problems with Safari and rendering. I won't look into it again until it his GM. |
This screenshot from iOS7 iPad mini 2 |
Hm...my ipad looks fine. Can you post a sample somewhere so I can debug it? |
I found how to fix bug. Then I run my app appframework sets height for div#afui = 1024 and then after running statusbar fix we have height div#afui = height + 20 (padding-top) = 1044, so we should set div#afui = height - 20px after running statusbar fix. |
Fixing it now. It should be changed in the CSS, not setting the AFUI height |
Issue
For iOS7 style statusbar overlay when building Cordova app, there needs to be option to enable a 20px padding in header for iOS7 theme.
Fix
$.ui.overlayStatusbar
, which is false by default.$.os.ios7
and then will add a classoverlayStatusbar
to.header
elements.overlayStatusbar
class inios7.css
withpadding-top:20px
andheight:64px
$.ui.overlayStatusbar = true
Also fixed few minor issues in 2 more commits:
.header
class