[v2 beta.11 ios] Modal navbar height is too short
See original GitHub issueShort description of the problem:
I have the following preferences set in config.xml
:
<preference name="StatusBarOverlaysWebView" value="true"/>
<preference name="StatusBarBackgroundColor" value="#00A9A2"/>
<preference name="StatusBarStyle" value="styleDefault"/>
<preference name="fullscreen" value="true"/>
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…
- present a component as a modal using modalcontroller
- push another component to the navcontroller from within the modal
- notice the navbar height is reduced.
Which Ionic Version? Ionic 2.0.0beta.11
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:14 (2 by maintainers)
Top Results From Across the Web
[v2 beta.11 ios] Modal navbar height is too short #7580 - GitHub
Short description of the problem: I have the following preferences set in config.xml:
Read more >iOS 11 navigation bar height customizing - Stack Overflow
Yup, custom-height navigation bars are still very glitchy in beta 4, despite the release notes stating: "Navigation bars should now look correct ...
Read more >iOS 11 Xcode 9 Navigation bar height not changes
You have to set the additionalSafeAreaInsets.top with your navigationbar height less the standard statusbar height (which is 44). This is the code of...
Read more >View Controller Presentation Changes in iOS and iPadOS 16
The navigation bar height is unchanged on iPadOS 16.0 beta 5. ... On the 11" iPad Pro, with default settings, both view controllers...
Read more >CSS fix for 100vh in mobile WebKit - Matt Smith
Is it possible that the address bar on iOS is the same height for all devices? If so, something as simple as height:...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
@ghenry22 thank you for the information. Creating an outer component with
<ion-nav>
in it does solve my problem. But I can’t help but feel that this solution is incredibly short sighted. Eventually most complex apps will want to push additional pages onto the navigation stack from within a modal. Which means they will have to find this workaround and implement it in a creative way, or once per every modal that has sub navigation pages.