Skip to content
This repository has been archived by the owner on Oct 6, 2021. It is now read-only.

iOS 11: Status bar no longer floating above content #203

Open
leonderijke opened this issue Dec 6, 2017 · 3 comments
Open

iOS 11: Status bar no longer floating above content #203

leonderijke opened this issue Dec 6, 2017 · 3 comments

Comments

@leonderijke
Copy link
Collaborator

On iOS 11 the status bar no longer floats above the content, but instead pushes the content down. It looks like black-translucent is no longer a valid value for the apple-mobile-web-app-status-bar-style meta tag.

This is reported elsewhere as well:

It's been said that switching to landscape and back would dissappear the issue, but I haven't been able to reproduce that behavior.

If there is a way to detect iOS 11, we could disable the $header-ios-offset in Header.scss for iOS 11. That will at least render the Header with the right height, but unfortunately won't make the status bar transparent.

cc: @RoelN, @ruisalgado

@leonderijke
Copy link
Collaborator Author

This can be fixed by adding viewport-fit=cover to the viewport meta tag in index.html.

@pascalw
Copy link
Member

pascalw commented Feb 2, 2018

@leonderijke is adding the viewport-fit tag a proper solution or is there anything better we can do?

@leonderijke
Copy link
Collaborator Author

Yes, if you combine viewport-fit=cover with an update of cordova-ios this issue is fixed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants