In my AIR application, I use Flash's Button
component for most of my simple buttons. But for some reason, when I give the window a NativeMenu
, the buttons look a bit different. Specifically, the text appears to be smaller.
Here's what I mean. Without the NativeMenu
:
The button appears normal. But when I add a menu bar:
As you can see the button looks different. In fact, now that I look at it again, the TextArea
seems a bit smaller too.
If anyone knows why this is happening and how to prevent it that would be great.
The problem is that the NativeMenu
is scaling down the stage, resulting in the smaller, blurry components. This can be avoided by changing the stage's scaleMode
property:
stage.scaleMode = StageScaleMode.NO_SCALE;