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

Status bar disappears, and inconsistent window.innerHeight on iPhone X

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: cordova-ios 4.5.0
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Mac OS 10.13.2, Xcode 9.2.0, cordova-cli 8.0.0, cordova-ios 4.5.4, cordova-plugin-statusbar 2.4.0

      Description

      Run "cordova prepare" on the attached sample project, open it in Xcode, run it in the iPhone X iOS 11.2 simulator, and attach a Safari debugger.

      While in portrait mode, the status bar is visible. Type "window.innerHeight" into the Safari console. It will report 768.

      Rotate to landscape, repeat the console command, and it will report 375.

      Now rotate back to portrait. The status bar is gone. Repeat the command again, and it will report 812.

      Why is the status bar disappearing?

      We're still struggling to get our app working on the iPhone X....hope Cordova can iron out all the iPhone X bugs soon! 🙏

        Attachments

        1. CordovaTest.zip
          31 kB
          Jacob Weber

          Activity

            People

            • Assignee:
              jcesarmobile jcesarmobile
              Reporter:
              jweber Jacob Weber
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: