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 2021/01/13 13:50:41 UTC

[royale-asjs] branch reconcile_967_and_1019 updated: Don't forget to delegate measurement to Skin

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

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


The following commit(s) were added to refs/heads/reconcile_967_and_1019 by this push:
     new 273d599  Don't forget to delegate measurement to Skin
273d599 is described below

commit 273d599e25972cfaa86c643c6d572996f3ac5fb1
Author: Yishay Weiss <yi...@hotmail.com>
AuthorDate: Wed Jan 13 15:49:21 2021 +0200

    Don't forget to delegate measurement to Skin
---
 .../src/main/royale/spark/components/SkinnableContainer.as          | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/SkinnableContainer.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/SkinnableContainer.as
index 42a085f..22729eb 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/SkinnableContainer.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/SkinnableContainer.as
@@ -30,6 +30,7 @@ import mx.utils.BitFlagUtil;
 import spark.events.ElementExistenceEvent;
 */
 import mx.core.IUIComponent;
+import spark.components.supportClasses.Skin;
 import mx.core.IVisualElement;
 import mx.core.mx_internal;
 
@@ -1022,9 +1023,12 @@ public class SkinnableContainer extends SkinnableContainerBase implements IConta
 	    if (_layout)
 	    {
 		_layout.measure();
+	    } else if (skin)
+	    {
+		(skin as Skin).layout.measure();
 	    } else
 	    {
-		super.measure();
+		    super.measure();
 	    }
     }