royale-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [royale-asjs] 18/21: also layout content area when children added
Date Fri, 28 Sep 2018 03:42:58 GMT
This is an automated email from the ASF dual-hosted git repository.

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

commit 1939818afbddc4ba061fcc265ce1e41c4c9e7368
Author: Alex Harui <aharui@apache.org>
AuthorDate: Thu Sep 27 12:27:04 2018 -0700

    also layout content area when children added
---
 .../MXRoyale/src/main/royale/mx/containers/Panel.as        | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/containers/Panel.as b/frameworks/projects/MXRoyale/src/main/royale/mx/containers/Panel.as
index e04ea8e..418e54a 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/containers/Panel.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/containers/Panel.as
@@ -67,6 +67,7 @@ import mx.core.UIComponent;
 
 import org.apache.royale.core.IChild;
 import org.apache.royale.events.Event;
+import org.apache.royale.events.ValueEvent;
 
 //--------------------------------------
 //  Styles
@@ -823,6 +824,19 @@ public class Panel extends Container
         var contentView:UIComponent = panelView.contentArea as UIComponent;
         contentView.paddingBottom = value;
     }
+    
+    /**
+     *  @private
+     */
+    override public function childrenAdded():void
+    {
+        var panelView:PanelView = view as PanelView;
+        var contentView:UIComponent = panelView.contentArea as UIComponent;
+        panelView.contentArea.dispatchEvent(new ValueEvent("childrenAdded"));
+        super.childrenAdded();
+    }
+    
+
 
 }
 


Mime
View raw message