You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2018/08/05 01:18:33 UTC

[royale-asjs] 08/09: force layout on SWF side

This is an automated email from the ASF dual-hosted git repository.

aharui pushed a commit to branch feature/MXRoyale
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit be5949478fe6e57d4765a9def948548b4f53e05b
Author: Alex Harui <ah...@apache.org>
AuthorDate: Sat Aug 4 17:02:37 2018 -0700

    force layout on SWF side
---
 .../projects/MXRoyale/src/main/royale/mx/managers/SystemManager.as    | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/managers/SystemManager.as b/frameworks/projects/MXRoyale/src/main/royale/mx/managers/SystemManager.as
index 7deb47c..f06a06a 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/managers/SystemManager.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/managers/SystemManager.as
@@ -2903,6 +2903,10 @@ public class SystemManager extends SystemManagerBase implements ISystemManager,
         // until preloader?
         component.addEventListener("applicationComplete", applicationCompleteHandler);
         addChild(component as IUIComponent);
+        COMPILE::SWF
+        {
+            component.setActualSize(stage.stageWidth, stage.stageHeight);            
+        }
     }
     
     private function applicationCompleteHandler(event:Event):void