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

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


The following commit(s) were added to refs/heads/develop by this push:
     new e12914b  body size is not necessarily set to content
e12914b is described below

commit e12914b1017860ce26ba04821a8ff101b62ce166
Author: DESKTOP-RH4S838\Yishay <yishayj...@hotmail.com>
AuthorDate: Sat Apr 11 16:37:10 2020 +0300

    body size is not necessarily set to content
---
 frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as 
b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
index 8653c40..079ec9c 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
@@ -4311,8 +4311,8 @@ COMPILE::JS
                        return new Rectangle(0, 0, stage.stageWidth, 
stage.stageHeight);
                }
                COMPILE::JS {
-                       var body:HTMLBodyElement = 
document.getElementsByTagName('body')[0] as HTMLBodyElement;
-                       return new Rectangle(0, 0, body.clientWidth, 
body.clientHeight);
+            var topLevelApplication:IUIBase = FlexGlobals.topLevelApplication 
as IUIBase;
+                       return new Rectangle(0, 0, topLevelApplication.width, 
topLevelApplication.height);
                }
        }
 

Reply via email to