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

[jira] [Created] (CB-13682) Statusbar not overlapping web view

Sir Patrick created CB-13682:
--------------------------------

             Summary: Statusbar not overlapping web view
                 Key: CB-13682
                 URL: https://issues.apache.org/jira/browse/CB-13682
             Project: Apache Cordova
          Issue Type: Bug
          Components: cordova-plugin-statusbar
    Affects Versions: cordova-ios 4.5.0, 2.4.0
         Environment: iOS 11.2.1
Cordova: 7.1.0
Cordova iOS: 4.5.4
cordova-plugin-statusbar: 2.4.0
            Reporter: Sir Patrick
            Priority: Critical


There seems to be a bug with initializing "_statusBarBackgroundView" in the ios code.
 It's initialized to YES. The code that makes it appear above the web view is in the 

setStatusBarOverlaysWebView method.

However, if the value did not change, it won't execute. Hence, the code 

[_statusBarBackgroundView removeFromSuperview];

is never executed for me unless I'm toggling the flag on startup:

StatusBar.overlaysWebView(false);
StatusBar.overlaysWebView(true);

That fixes the issue for me in this configuration, and the status bar overlays the webview again.

It might be good enough to actually call teh the setStatusBarOverlaysWebView when defining the default.



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