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

cordova-plugin-statusbar resets overlaysWebView on rotation

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      cordova 6.4.0

      Description

      I have set StatusBarOverlaysWebView to false in config.xml:
      <preference name="StatusBarOverlaysWebView" value="false" />
      This is working fine. When I rotate the iPhone X to landscape and back again, the StatusBar overlays the WebView again. As a workaround I can fix this via:
      $(window).on( "orientationchange", function()

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

      );
      I guess this could better be fixed in the code of the plugin.
      Additional I need to set overlaysWebView to true before setting it to false again. Otherwise the workaround will not work.
      Thank you.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jcesarmobile jcesarmobile
                Reporter:
                metty Matthias Schmitt
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: