Skip to main content
Vikash_kumar29
Participant
February 12, 2016
Question

Incorrect Orientation of status bar on ios 8+ when aspect ratio of application is changed.

  • February 12, 2016
  • 0 replies
  • 378 views

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.

This topic has been closed for replies.