flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject git commit: [flex-asjs] [refs/heads/develop] - fix layouts responding when an image loads late. We are now going to watch all children for changes just about everywhere
Date Mon, 03 Aug 2015 17:51:47 GMT
Repository: flex-asjs
Updated Branches:
  refs/heads/develop fe6ef5188 -> f91b44dff


fix layouts responding when an image loads late.  We are now going to watch all children for
changes just about everywhere


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

Branch: refs/heads/develop
Commit: f91b44dff6f6382c8650402f221bb24286c3f7b4
Parents: fe6ef51
Author: Alex Harui <aharui@apache.org>
Authored: Sun Aug 2 22:49:42 2015 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Mon Aug 3 06:56:38 2015 -0700

----------------------------------------------------------------------
 .../src/org/apache/flex/html/beads/ContainerView.as | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f91b44df/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/ContainerView.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/ContainerView.as b/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/ContainerView.as
index ba61bb3..8eba5e0 100644
--- a/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/ContainerView.as
+++ b/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/ContainerView.as
@@ -167,7 +167,7 @@ package org.apache.flex.html.beads
 				if (num > 0) performLayout(event);
 			}
 			else {
-				// otherwise, wait until the unknown sizes hav been set and then finish
+				// otherwise, wait until the unknown sizes have been set and then finish
 				host.addEventListener("sizeChanged", deferredSizeHandler);
 			}
 		}
@@ -187,7 +187,11 @@ package org.apache.flex.html.beads
 			completeSetup();
 			
 			var num:Number = contentView.numElements;
-			if (num > 0) performLayout(event);
+			if (num > 0) 
+            {
+                performLayout(event);
+                childrenChangedHandler(event);
+            }
 		}
 		
 		/**
@@ -454,12 +458,8 @@ package org.apache.flex.html.beads
 			var n:Number = contentView.numElements;
 			for (var i:int=0; i < n; i++) {
 				var child:IUIBase = contentView.getElementAt(i) as IUIBase;
-				if (host.isWidthSizedToContent()) {
-					child.addEventListener("widthChanged",childResizeHandler);
-				}
-				if (host.isHeightSizedToContent()) {
-					child.addEventListener("heightChanged",childResizeHandler);
-				}
+				child.addEventListener("widthChanged", childResizeHandler);
+				child.addEventListener("heightChanged", childResizeHandler);
 			}
 		}
 		


Mime
View raw message