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/08/16 00:53:59 UTC
[royale-asjs] 04/05: when sized to content,
need to start by layout of entire panel which will layout the
content area
This is an automated email from the ASF dual-hosted git repository.
aharui pushed a commit to branch feature/MXRoyale
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit 653f56de0807c9447ff660ff9d87735ee4a6b0cd
Author: Alex Harui <ah...@apache.org>
AuthorDate: Wed Aug 15 17:46:50 2018 -0700
when sized to content, need to start by layout of entire panel which will layout the content area
---
frameworks/projects/MXRoyale/src/main/royale/mx/containers/Panel.as | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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 9b2e0ba..cb9f0bf 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/containers/Panel.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/containers/Panel.as
@@ -666,7 +666,7 @@ public class Panel extends Container
panelView.contentArea.addElement(c, dispatchEvent);
if ((isHeightSizedToContent() || !isNaN(explicitHeight)) &&
(isWidthSizedToContent() || !isNaN(explicitWidth)))
- panelView.contentArea.dispatchEvent(new Event("layoutNeeded"));
+ this.dispatchEvent(new Event("layoutNeeded"));
}
/**
@@ -679,7 +679,7 @@ public class Panel extends Container
panelView.contentArea.addElementAt(c, index, dispatchEvent);
if ((isHeightSizedToContent() || !isNaN(explicitHeight)) &&
(isWidthSizedToContent() || !isNaN(explicitWidth)))
- panelView.contentArea.dispatchEvent(new Event("layoutNeeded"));
+ this.dispatchEvent(new Event("layoutNeeded"));
}
/**