flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [2/9] git commit: [flex-asjs] [refs/heads/develop] - forward layoutNeeded from children
Date Thu, 27 Aug 2015 06:46:03 GMT
forward layoutNeeded from children


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/95475332
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/95475332
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/95475332

Branch: refs/heads/develop
Commit: 954753323a0eab5efb211a1d414ff0f82a8e9768
Parents: 9a3e19a
Author: Alex Harui <aharui@apache.org>
Authored: Wed Aug 26 14:38:39 2015 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Wed Aug 26 14:38:39 2015 -0700

----------------------------------------------------------------------
 .../flex/html/supportClasses/ContainerContentArea.js   | 13 +++++++++++++
 1 file changed, 13 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/95475332/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/ContainerContentArea.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/ContainerContentArea.js
b/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/ContainerContentArea.js
index 952fcd1..4887922 100644
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/ContainerContentArea.js
+++ b/frameworks/projects/HTML/js/src/org/apache/flex/html/supportClasses/ContainerContentArea.js
@@ -57,5 +57,18 @@ org.apache.flex.html.supportClasses.ContainerContentArea.prototype.createElement
   this.positioner.style.position = 'relative';
   this.element.flexjs_wrapper = this;
 
+  this.addEventListener('layoutNeeded',
+      goog.bind(this.forwardEventHandler_, this));
   return this.element;
 };
+
+
+/**
+ * @private
+ * @param {Object} e The Event.;
+ */
+org.apache.flex.html.supportClasses.ContainerContentArea.prototype.forwardEventHandler_ =
+    function(e) {
+  if (this.parent)
+    this.parent.dispatchEvent(e);
+};


Mime
View raw message