Skip to main content
Inspiring
November 12, 2013
Question

iOS7 Orientation/AspectRatio Bug AIR 3.9

  • November 12, 2013
  • 5 replies
  • 2196 views

I have discovered a new bug in AIR 3.9 on iOS7. I am testing on iPAD2

How to replicate:

  • Create an app that auto-orient to any direction.
  • Create 1 button at the very top left that when clicked runs the following code:       this.stage.setAspectRatio(StageAspectRatio.LANDSCAPE);
  • Hold your device in portrait mode with the home button at the bottom.... and run the app.
  • When the app boots up, click the button on the top left.
  • The app begins to rotate from portrait to landscape (as expected) but there is a problem. The stage has somehow offset itself.

The top left of your screen is no longer 0,0..... it is now 20,-20 (making your entire app look misaligned)

Here are some screenshots for proof (I outlined them so you can see the stage size)

Portrait mode before clicking the button:

Landscape Mode After clicking the botton:

I made my button with rounded corners so that you can see it being off the stage.

I tried this on Android and it doesnt seem to happen.. I'm guessing maybe this has something to do with the iOS Taskbar change.... because the amount it is offset is 20, (the taskbar height in non-retina)... though I'm not sure why it's offseting the X

Here is the project if you want to test it yourself:

http://www.filedropper.com/forcelandscapeorientation

Anyone else experienced this?

This topic has been closed for replies.

5 replies

Participating Frequently
November 26, 2013

Any Updates on this ? We have similar issue.

Known Participant
November 27, 2013

We have a similar bug where the resolution changes on device orientation (https://bugbase.adobe.com/index.cfm?event=bug&id=3658359) and another where the entire stage disappers after an orientation change (https://bugbase.adobe.com/index.cfm?event=bug&id=3658334). Lots of bugs with the device orientation change, no fixes as of yet.

Participating Frequently
November 27, 2013

Yup we are also getting the same problem

(https://bugbase.adobe.com/index.cfm?event=bug&id=3658334)

But for us it is 100% reproducable on Ipad, Just rotate the device when the splash screen is visible and it crashes , we even tried to disable rotation but does not help. this bug only happen in IOS7/AIR3.9

Inspiring
November 13, 2013

Well it seems I let these responses get me too hopeful and wasted my time... This issue exists in the AIR 3.9 build from Oct 31st (the build I used when I posted this bug) as well the latest (today 11-13) version of the AIR 3.9

I should have known better and trusted Varun Bhatia

Colin Holgate
Inspiring
November 13, 2013

Thanks for editing my name out of the message! The part that had given me some hope was this one:

- orientationChange event handler fetches wrong stage.orientation values.

but of course with a more careful read I would have noticed that it was an Android only fix. Oh well...

Inspiring
November 13, 2013

I definitely do appreciate the help, removed the name because it would do nothing positive. Hopefully adobe fixes this soon!

btw... clicking your link only seems to redirect back to this thread

Adobe Employee
November 13, 2013

We are aware of this issue and are investigating this!

Inspiring
November 13, 2013

curiously before I go update the SDK.... Why would Varun Bhatia say they are aware of it and investigating? Does that mean it's not yet fixed?

I'm using the AIR 3.9 build from Oct 31st... so it's been fixed within the last 14 days?

Colin Holgate
Inspiring
November 13, 2013

To explain, there have been recent fixes that might improve things for you.

Colin Holgate
Inspiring
November 13, 2013

SDK page:

http://www.adobe.com/devnet/air/air-sdk-download.html