You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2018/09/28 03:42:58 UTC
[royale-asjs] 18/21: also layout content area when children added
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 <ah...@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();
+ }
+
+
}