Hi All,
I have an application which supports both aspect ratio i.e LANDSCAPE and PORTRAIT. For some of the screen I need to set the orientation to PORTRAIT ONLY. To achieve this I have used :
stage.setAspectRatio(StageAspectRatio.PORTRAIT);
This change the orientation of application to portrait correctly and lock the orientation in portrait mode and is working correctly as per the requirement. Now when this code is used though application's aspect ratio is changed to portrait, but status bar orientation remain in LANDSCAPE mode.
Due to this when softkeyboard is opened it is opened in incorrect orientation. Please see image below:
Below is code from descriptor file :
<aspectRatio>any</aspectRatio>
<renderMode>auto</renderMode>
<autoOrients>true</autoOrients>
<fullScreen>true</fullScreen>
<visible>true</visible>
<softKeyboardBehavior>none</softKeyboardBehavior>
This issue is not observed when running on ios version lower than 8. I am using flex 4.14.1 and AIR 19.0 version.
Please suggest what I can do to resolve this.