question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[v2 beta.11 ios] Modal navbar height is too short

See original GitHub issue

Short 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…

  1. present a component as a modal using modalcontroller
  2. push another component to the navcontroller from within the modal
  3. notice the navbar height is reduced.

Which Ionic Version? Ionic 2.0.0beta.11

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:14 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
ghenry22commented, Oct 4, 2016

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.

0reactions
jasonwaterscommented, Nov 27, 2016

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found