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 2020/11/17 13:46:12 UTC

[royale-asjs] branch develop updated: More skin sizing issues in spark

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 53d95fb  More skin sizing issues in spark
53d95fb is described below

commit 53d95fb76a18bc2284f44f3505d84645a9ece68f
Author: Yishay Weiss <yi...@hotmail.com>
AuthorDate: Tue Nov 17 13:44:58 2020 +0000

    More skin sizing issues in spark
---
 .../src/main/royale/spark/components/beads/SkinnableContainerView.as  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/beads/SkinnableContainerView.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/beads/SkinnableContainerView.as
index 0d95a63..29ad36b 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/beads/SkinnableContainerView.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/beads/SkinnableContainerView.as
@@ -105,11 +105,11 @@ public class SkinnableContainerView extends SparkContainerView
 		    (host.skin as Skin).layout.measure();
 		    if (host.isWidthSizedToContent()) 
 		    {
-			    host.skin.setLayoutBoundsSize(host.skin.measuredWidth, NaN);
+			    host.skin.setLayoutBoundsSize(NaN, host.height);
 			    host.measuredWidth = host.skin.measuredWidth;
 		    } else
 		    {
-			    host.skin.setLayoutBoundsSize(NaN, host.skin.measuredHeight);
+			    host.skin.setLayoutBoundsSize(host.width, NaN);
 			    host.measuredHeight = host.skin.measuredHeight;
 		    }
             }