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/10/03 11:04:55 UTC

[royale-asjs] branch develop updated: Make sure measuredMin dimensions don't mess with constraint based layout in Panel

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 d5d7059b1c Make sure measuredMin dimensions don't mess with constraint based layout in Panel
d5d7059b1c is described below

commit d5d7059b1c94f9fef431ced358dca1757c16e51e
Author: Yishay Weiss <yi...@mcafee.com>
AuthorDate: Mon Oct 3 04:04:29 2022 -0700

    Make sure measuredMin dimensions don't mess with constraint based layout in Panel
---
 .../MXRoyale/src/main/royale/mx/containers/beads/PanelView.as       | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/containers/beads/PanelView.as b/frameworks/projects/MXRoyale/src/main/royale/mx/containers/beads/PanelView.as
index 9c94da138a..6179cb1ae3 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/containers/beads/PanelView.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/containers/beads/PanelView.as
@@ -136,9 +136,15 @@ public class PanelView extends org.apache.royale.html.beads.PanelView
             
         var panel:ILayoutChild = host as ILayoutChild;
         if (!panel.isWidthSizedToContent())
+        {
             contentArea.percentWidth = 100;
+            (contentArea as UIComponent).minWidth = 1;
+        }
         if (!panel.isHeightSizedToContent())
+        {
             contentArea.percentHeight = 100;
+            (contentArea as UIComponent).minHeight = 1;
+        }
         
         // Now give the Panel its own layout
         var panelLayout:PanelLayout = new PanelLayout();