Skip to content
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

Fixes iOS 11 white statusbar issue in Cordova #1630

Merged
merged 1 commit into from
Aug 10, 2017

Conversation

longzheng
Copy link
Contributor

iOS 11 changes the behaviour of how UIWebView and WKWebView calculates the layout.

<iOS 11 it would return the layout including the status bar so you could render underneath it.
In IOS 11 by default the layout no longer includes the status bar (which is then rendered as white).

As the Cordova team has suggested, you can add a viewport tag viewport-fit=cover to change to the intended behaviour of including the status bar. https://issues.apache.org/jira/browse/CB-12886

However this plugin overrides the viewport tag on load with its own custom value. This corrects the value to also include the fix.

iOS 11 changes the behaviour of how UIWebView and WKWebView calculates the layout. 

<iOS 11 it would return the layout including the status bar so you could render underneath it. 
In IOS 11 by default the layout no longer includes the status bar (which is then rendered as white).

As the Cordova team has suggested, you can add a viewport tag ```viewport-fit=cover``` to change to the intended behaviour of including the status bar. https://issues.apache.org/jira/browse/CB-12886

However this plugin overrides the viewport tag on load with its own custom value. This corrects the value to also include the fix.
@wf9a5m75 wf9a5m75 merged commit f27056c into mapsplugin:multiple_maps Aug 10, 2017
@wf9a5m75
Copy link
Member

Thank you for letting me know.
Actually I haven't tested this plugin on iOS11 yet.

@wf9a5m75
Copy link
Member

#1637

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

Successfully merging this pull request may close these issues.

2 participants