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

Fix statusbar with inappbrowser causing incorrect orientation on iOS8

    XMLWordPrintableJSON

    Details

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

      iOS8

      Description

          <platform name="ios">
              <preference name="Orientation" value="all" />
          </platform>
          <engine name="ios" spec="~4.1.0" />
          <plugin name="cordova-plugin-whitelist" spec="1" />
          <plugin name="cordova-plugin-inappbrowser" spec="~1.2.0" />
          <plugin name="cordova-plugin-statusbar" spec="https://github.com/apache/cordova-plugin-statusbar#244eb71" />
      

      Ran it on an iPad Air simulator with iOS 8.4.
      Started in portrait, opened an InAppBrowser, rotated to landscape, closed the InAppBrowser.
      The window wasn't sized correctly. See attached image.

      It seems to only be a problem in iOS 8, not iOS 9. And it only affects portrait-to-landscape, not landscape-to-portrait.

        Attachments

        1. ios.png
          96 kB
          Sergey Shakhnazarov

          Issue Links

            Activity

              People

              • Assignee:
                daserge Sergey Shakhnazarov
                Reporter:
                daserge Sergey Shakhnazarov
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: