You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2015/08/03 19:51:47 UTC
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
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 <ah...@apache.org>
Authored: Sun Aug 2 22:49:42 2015 -0700
Committer: Alex Harui <ah...@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);
}
}