Skip to content

Stop forcing StageAlign.TOP_LEFT on Flash/AIR - #2092

Open
Tutez64 wants to merge 1 commit into
openfl:developfrom
Tutez64:bugfix/flash-stage-align-default
Open

Stop forcing StageAlign.TOP_LEFT on Flash/AIR#2092
Tutez64 wants to merge 1 commit into
openfl:developfrom
Tutez64:bugfix/flash-stage-align-default

Conversation

@Tutez64

@Tutez64 Tutez64 commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

Flash/AIR already default Stage.align to "" (centered). Haxe's flash.Boot overwrites that with TOP_LEFT when the value is empty, and Lime then forced TOP_LEFT again in FlashWindow.
Restore "" after boot so AIR matches Flash Player.

Haxe's flash.Boot already overwrites the empty-string default with
TOP_LEFT. Forcing it again in FlashWindow made SHOW_ALL content stick
to the top-left. Restore "" so AIR matches Flash Player.
@joshtynjala

Copy link
Copy Markdown
Member

I've always assumed that this was chosen purposefully for consistency with other targets, which default to TOP_LEFT and NO_SCALE (and the other targets didn't even support other align/scaleMode values until recently).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants