You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Leandro Terodde (JIRA)" <ji...@apache.org> on 2017/07/23 13:10:00 UTC

[jira] [Commented] (CB-12890) Status bar no longer overlays the web view on iOS 11

    [ https://issues.apache.org/jira/browse/CB-12890?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16097623#comment-16097623 ] 

Leandro Terodde commented on CB-12890:
--------------------------------------

I've looked into Ahmad's link and he took me to the path of fixing it. I noticed that when I invoked the "Keyboard.disableScroll(false)" function that the webview goes back to normal and goes underneath the statusbar again. What it simply does is set the scrollEnabled property of the scrollView in the webView to "NO". So I went to the CDVUIWebViewDelegate.m file (Private/Plugins/CDVUIWebViewEngine) and pasted this line at the end of the webViewDidFinishLoad function :

webView.scrollView.scrollEnabled = NO;

Hope this helps

> Status bar no longer overlays the web view on iOS 11
> ----------------------------------------------------
>
>                 Key: CB-12890
>                 URL: https://issues.apache.org/jira/browse/CB-12890
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-plugin-statusbar
>         Environment: iOS 11, using Ionic v3.3.0 on an iPhone 7 Plus
>            Reporter: Ahmad Tawakol
>              Labels: iOS11
>
> Just updated to iOS 11. I am using the same exact project I was using on iOS 10.3.
> The status bar no longer overlays the web view, it just pushes it down.
> StatusBar.styleDefault() shows the status bar with a white background and white text.
> StatusBar.styleBlackTranslucent() makes the background white with the text also in white, so it just looks like a white bar.
> StatusBar.overlaysWebView(true) has no effect at all. Did not need it before to work correctly, adding it doesn't fix the problem.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org