Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-13682

Statusbar not overlapping web view

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.4.0, cordova-ios 4.5.0
    • Fix Version/s: None
    • Labels:
    • Environment:

      iOS 11.2.1
      Cordova: 7.1.0
      Cordova iOS: 4.5.4
      cordova-plugin-statusbar: 2.4.0

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              debugerr Sir Patrick
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: