resize properly in certain scenarios
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/70d6ee2f Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/70d6ee2f Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/70d6ee2f Branch: refs/heads/develop Commit: 70d6ee2f970c56d586b32409d5e3e4750ec0db9b Parents: 1f3429a Author: Alex Harui <aha...@apache.org> Authored: Tue Jan 13 10:08:37 2015 -0800 Committer: Alex Harui <aha...@apache.org> Committed: Tue Jan 13 10:08:37 2015 -0800 ---------------------------------------------------------------------- .../src/org/apache/flex/html/beads/TextFieldViewBase.as | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/70d6ee2f/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/TextFieldViewBase.as ---------------------------------------------------------------------- diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/TextFieldViewBase.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/TextFieldViewBase.as index 839420b..2378b78 100644 --- a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/TextFieldViewBase.as +++ b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/TextFieldViewBase.as @@ -104,7 +104,14 @@ package org.apache.flex.html.beads autoHeight = ilc.isHeightSizedToContent(); autoWidth = ilc.isWidthSizedToContent(); - + if (!autoWidth && !isNaN(ilc.explicitWidth)) + { + widthChangeHandler(null); + } + if (!autoHeight && !isNaN(ilc.explicitHeight)) + { + heightChangeHandler(null); + } } /**