You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by yi...@apache.org on 2022/01/17 08:51:26 UTC

[royale-asjs] branch develop updated: Make sure scrollbars are not in the way of height measurements

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 8df0960  Make sure scrollbars are not in the way of height measurements
8df0960 is described below

commit 8df09602b2e3d134cc6e3f9b8cb9cdb97fa1d600
Author: Yishay Weiss <yi...@hotmail.com>
AuthorDate: Mon Jan 17 10:51:00 2022 +0200

    Make sure scrollbars are not in the way of height measurements
---
 frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as | 6 ++++++
 1 file changed, 6 insertions(+)

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 7efdf5d..0a688a0 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as
@@ -2783,13 +2783,17 @@ COMPILE::JS
                 var oldHeight:Object;
                 var oldTop:String;
                 var oldBottom:String;
+                var oldOverflow:String;
                 oldTop = this.positioner.style.top;
                 oldBottom = this.positioner.style.bottom;
                 oldHeight = this.positioner.style.height;
+                oldOverflow = this.positioner.style.overflow;
                 if (oldTop.length && oldBottom.length) // if both are set, this also dictates height
                     return 0; //this.positioner.style.top = "";
                 if (oldHeight.length)
                     this.positioner.style.height = "";
+                if (oldOverflow.length)
+                    this.positioner.style.overflow = "visible";
                 var mh:Number = this.positioner.offsetHeight;
                 if (mh == 0 && _initialized && numChildren > 0)
                 {
@@ -2809,6 +2813,8 @@ COMPILE::JS
                 }
                 if (oldHeight.length)
                     this.positioner.style.height = oldHeight;
+                if (oldOverflow.length)
+                    this.positioner.style.height = oldOverflow;
                 if (oldTop.length && oldBottom.length) // if both are set, this also dictates width
                     this.positioner.style.top = oldTop;
                 if (!isNaN(percentHeight))