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

Black bar in IOS landscape app, after returning to app with different orientation

    XMLWordPrintableJSON

    Details

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

      IOS 9

      Description

      Origianally I thought this issue was with the barcode scanner, so I opened an issue there. However, i was directed here, and found that it was indeed a statusbar issue. [Original Issue](https://github.com/phonegap/phonegap-plugin-barcodescanner/issues/398)

      Expected Behaviour
      Orientation returns to normal.

      Actual Behaviour
      black bar is visible on right side of screen.

      Steps to Reproduce

      1. add `<preference name="Orientation" value="landscape" />` to your config.xml

      2. install phonegap-plugin-barcodescanner

      3. launch application, begin scan barcode

      4. switch to portrait mode.

      5. scan barcode

      6. When returned to app, black bar appears on right (landscape mode)
      [screenshot](https://cloud.githubusercontent.com/assets/1930227/21735694/ad440c02-d420-11e6-938a-5ee8175cc43f.png)

      Platform and Version (eg. Android 5.0 or iOS 9.2.1)

      IOS 9.3.4

      Cordova CLI version and cordova platform version

      cordova --version - 6.4.0
      cordova platforms - IOS

      Work around

      executing `StatusBar.hide(); StatusBar.show()` causes the bar to go away.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jcesarmobile jcesarmobile
                Reporter:
                ericwooley Eric Wooley
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: