Skip to main content
jadams602
Inspiring
December 16, 2014
Question

AIR 16.0.0.245 causes extra resize events on startup on landscape iPad

  • December 16, 2014
  • 2 replies
  • 630 views

I notice one of the new fixes in the latest 16.0.0.245 beta is:

  Wrong screen sizes and DPI are returned through runtime APIs. (3829474)

However, on a retina iPad, I am seeing new bad multiple stage resize events occurring in AIR 16.0.0.245 that never occurred in previous SDKs.

(or at least were not seen visually on startup).

Just doing a traditional listener on flash.events.Event.RESIZE

I am seeing three different resize callbacks on startup on an iPad retina when starting up in landscape mode

[trace] resize w:1000 h: 750  (seems to be in landscape orientation but not stretched to fill the screen)

[trace] resize w:1000 h: 750  (then stretched to fill screen but in portrait orientation)

[trace] resize w:2048 h: 1536  (the eventual and proper size for retina landscape)

However, starting up the app while holding the iPad in portrait mode does not cause these three different resize events, this only happens when starting up in landscape.

The app supports both orientations and has the proper launch images for both portrait and landscape, and I do not set any explicit width/height in the SWF metadata either.

Again, the final proper size eventually happens in landscape but not before distorting the content that is shown on the stage in the two previous sizes.

The exact same app and code does not exhibit this in AIR 15 or previous SDKs.

This topic has been closed for replies.

2 replies

Adobe Employee
December 16, 2014

Hi,

Thanks for reporting the issue Jeffrey,

We tried reproducing the issue on iPad 3 retina, iPad AIR and iPad 2 as well but unable to replicate it. All three calls from event Event.Resize are returning equal screensize.

Could you please share us a sample app to reproduce the issue at our end.

Best Regards,

Jitender

Inspiring
December 16, 2014

You may try with landscape mode only

Cheers

Inspiring
December 16, 2014

Yep same her.