You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On MacOS when resizing the application with scaleMode: EXACT_FIT the stage keep the initial width and height without update.
Checking on nativeWindow of the stage the new size it's correct, just can't be used due to size of nativeWindow not being the same of the stage due to the systemChrome.
The same code on Windows and Android works without problem.
public static function setup(param1:Stage):void
{
_stage = param1;
_stage.nativeWindow.addEventListener(NativeWindowBoundsEvent.RESIZE, __onResize);
_stage.stageFocusRect = false;
}
private static function __onResize(param1:NativeWindowBoundsEvent):void
{
var afterBounds:Rectangle = param1.afterBounds;
var nativeWidth:Number = _stage.nativeWindow.width;
var nativeHeight:Number = _stage.nativeWindow.height;
stageWidth = _stage.stageWidth;
stageHeight = _stage.stageHeight;
var logData:Object = {
"stageWidth": stageWidth,
"stageHeight": stageHeight,
"nativeWidth": nativeWidth,
"nativeHeight": nativeHeight,
"afterBounds": {
"width": afterBounds.width,
"height": afterBounds.height
}
}
trace("[StageReferance] Stage resize: " + JSON.stringify(logData));
_stage.dispatchEvent(new Event(Event.RESIZE));
}
The text was updated successfully, but these errors were encountered:
On MacOS when resizing the application with
scaleMode: EXACT_FIT
the stage keep the initial width and height without update.Checking on nativeWindow of the stage the new size it's correct, just can't be used due to size of nativeWindow not being the same of the stage due to the systemChrome.
The same code on Windows and Android works without problem.
The text was updated successfully, but these errors were encountered: