-
Notifications
You must be signed in to change notification settings - Fork 9
Description
Problem Description
After updating from SDK 51.1.3 to 51.2.2, I'm having a weird bug where the stage/window width will be halved not long after our application has launched. This issue does not happen with the earlier SDK version and no code has been changed in-between (switching back to the older SDK version fixes the issue.)
I've attempted to hook into the stage and native window resize event to try trace the issue, but none of those are ever called.
Steps to Reproduce
For context, I'm on Windows 11 with three monitors connected. My primary is 2560x1440, and I have two other 1920x1080 monitors, one horizontal and one vertical. The application is launching on my primary monitor. It will briefly display at the correct size, and then the width will halve not long after it's launched,
Just this code is enough to do it:
com.test.Container.as
package com.test
{
import flash.display.DisplayObject;
import flash.display.Sprite;
public class Container extends Sprite
{
public function Container()
{
var _loc3_:DisplayObject = null;
super();
stage.stageWidth = 994;
stage.stageHeight = 680;
}
}
}
container-app.xml
<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<application xmlns="http://ns.adobe.com/air/application/51.2">
<id>net.test.container</id>
<versionNumber>1.0</versionNumber>
<filename>test</filename>
<description>test</description>
<name>test</name>
<copyright/>
<initialWindow>
<content>container.swf</content>
<systemChrome>standard</systemChrome>
<transparent>false</transparent>
<visible>true</visible>
<fullScreen>false</fullScreen>
<aspectRatio>landscape</aspectRatio>
<renderMode>gpu</renderMode>
<width>994</width>
<height>680</height>
<maximizable>false</maximizable>
<minimizable>true</minimizable>
<resizable>false</resizable>
</initialWindow>
<customUpdateUI>false</customUpdateUI>
<supportedProfiles>desktop extendedDesktop</supportedProfiles>
</application>
Known Workarounds
Reverting back to 51.1.3 is a short-term workaround.