Browser versions or Packager version tested against:
Device and OS tested against:
What theme are you using for your application:
When in landscape mode, taking a picture causes the UI to go haywire . The device is still in landscape orientation, but the UI thinks it's portrait (it only takes up part of the width).
Steps to reproduce the problem:
Do a native build for iOS and run it from Xcode on an iPhone 5s (maybe others). Once it loads on the device, rotate the device to landscape orientation and tap the button to take a picture. As soon as the transition to the camera screen begins, you should notice a quick UI adjustment when the orientation changes from landscape to portrait. Take a picture in landscape mode. Keep device in landscape mode. Select ‘Use Photo’. Upon return to Sencha layout (still in landscape mode) the UI appears in portrait mode and only takes up the width of the screen that portrait mode would. Rotate the device to portrait mode (may or may not adjust) and then rotate back to landscape (should be ok now).
What I found is that once it starts to go into camera mode the Viewport orientation changes and the window width and height changes accordingly, but the window.orientation still reports portrait mode (should be landscape).
I tested using html, js and cordova and it does not have the same issue.
The result that was expected:
Once returned from camera mode, the UI should still be in landscape orientation and look just as it did before entering camera mode.
The result that occurs instead:
UI appears to be in portrait mode and only takes up the width of the screen that portrait mode would.