layout needed this event as well
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/874cc1b8 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/874cc1b8 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/874cc1b8 Branch: refs/heads/develop Commit: 874cc1b8316f8b2317f2af96c4371b5e83bb2994 Parents: 7df6052 Author: Alex Harui <aha...@apache.org> Authored: Thu Jan 15 16:18:19 2015 -0800 Committer: Alex Harui <aha...@apache.org> Committed: Fri Jan 23 12:24:04 2015 -0800 ---------------------------------------------------------------------- .../src/org/apache/flex/html/beads/layouts/ButtonBarLayout.as | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/874cc1b8/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/layouts/ButtonBarLayout.as ---------------------------------------------------------------------- diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/layouts/ButtonBarLayout.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/layouts/ButtonBarLayout.as index 365b353..4facb06 100644 --- a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/layouts/ButtonBarLayout.as +++ b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/layouts/ButtonBarLayout.as @@ -71,6 +71,7 @@ package org.apache.flex.html.beads.layouts public function set strand(value:IStrand):void { _strand = value; + IEventDispatcher(value).addEventListener("sizeChanged", changeHandler); IEventDispatcher(value).addEventListener("widthChanged", changeHandler); IEventDispatcher(value).addEventListener("heightChanged", changeHandler); IEventDispatcher(value).addEventListener("childrenAdded", changeHandler);