kabisa / maji

Maji is a framework to build great hybrid mobile apps.
https://www.majimobile.com/
MIT License
18 stars 10 forks source link

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

Open leonderijke opened 6 years ago

leonderijke commented 6 years ago

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 commented 6 years ago

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

pascalw commented 6 years ago

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

leonderijke commented 6 years ago

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