-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[v2 beta.11 ios] Modal navbar height is too short #7580
Comments
Here's what I believe is happening:
|
@jgw96 Any timeline on a fix for this one? It's a pretty glaring issue in my app right now... |
I get the same issue and find the reason is that: platform-ios platform-cordova is not added to the classList of body. |
Hello I'm facing this issue in iOS 9.3 but works fine on iOS 8 |
I also have this problem on iOS. Running iOS 9.3, no problem on android. I did not have this issue with beta10, since upgrading to beta11 it has appeared. |
this is still present on RC0 on both ios9 and ios10 from within a modal, push any page onto the nav stack and the space for the statusbar is lost. |
This can be fixed by having a |
I already have ion-header and ion-navbar on the modal when this issue is occurring. What is ion-nav? Did you mean navbar or is this something else that needs to be put into the header on modals? |
to be clear the modal itself has the correct header size. It's when you push another page onto the nav stack from within a modal then that pushed page the status bar overlaps the nav bar. |
@manucorporat - issue is still present in rc1 |
@ghenry22 what I try to explain is that this is not really a bug, but a unfortunate misuse of the API. It is very common for a application to have a root In beta RC0, modal are not longer attached to the main navigation stack, they are like an Alert. The NavController you are injecting in your modal is not the modal's one. You are pushing a page to the main navigation stack under the modal. If you want to have navigation inside your modal, you have to create a new ion-nav, check out this as reference: https://github.com/driftyco/ionic/blob/master/src/components/modal/test/basic/app-module.ts#L342-L531 We are evaluating if modal should provide automatically their own navigation stack, but it is not a trivial change. |
ah I see what you mean now, I'll have a play around with it and see what I can do. It's an odd one because in some of the beta versions this issue was not present. Obviously it would be nice to just be able to nav.push, nav.pop etc from any page/element in the app regardless of how that page is presented, it would certainly be a simpler user experience, but I also think that just having nice clear documentation about how to use nav within modals could achieve the same thing, |
@manucorporat thanks for the help! |
@ghenry22 thank you for the information. Creating an outer component with |
Short description of the problem:
I have the following preferences set in
config.xml
:They make it so that the status bar in ios overlays the top navbar a bit for a nice look. But I noticed an inconsistency with the navbar height when viewing a page component that was presented as a modal, and another page component is pushed onto the
NavController
. See this video:https://www.dropbox.com/s/1tw46nn86kqk9ql/err.mov?dl=0
What behavior are you expecting?
I was expecting the navbar height to maintain the same height it was in the original modal.
Steps to reproduce:
0. On an iOS device...
Which Ionic Version?
Ionic 2.0.0beta.11
The text was updated successfully, but these errors were encountered: