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

camera breaks UI when orientation changes from landscape to portrait on iOS

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 4.1.1
    • None
    • None
    • Mac OS 10.11.4, iOS 9.3.1, iPhone 6

    Description

      CB-10884 also affects the camera plugin. Rotate the device to landscape and launch the camera. Rotate to portrait while the camera window is open, then close the camera window. The viewport doesn't adjust to fill the screen.

      config.xml:

      <preference name="Orientation" value="all" platform="ios" />
      <engine name="ios" spec="4.1.1" />
      <plugin name="cordova-plugin-whitelist" spec="1.2.2" />
      <plugin name="cordova-plugin-statusbar" spec="2.1.3" />
      <plugin name="cordova-plugin-file" spec="4.2.0" />
      <plugin name="cordova-plugin-camera" spec="2.2.0" />
      

      Code to launch camera:

      navigator.camera.getPicture(function(){}, function(){}, {
          sourceType: Camera.PictureSourceType.CAMERA,
          destinationType: Camera.DestinationType.FILE_URI
      });
      

      Attachments

        Issue Links

          Activity

            People

              jcesarmobile jcesarmobile
              jweber Jacob Weber
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: