more attempts to fix autosizing
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/d8755674 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/d8755674 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/d8755674 Branch: refs/heads/develop Commit: d8755674ec2c5714951bca3d7774caafe9b8a0a7 Parents: e95eee4 Author: Alex Harui <aha...@apache.org> Authored: Thu Sep 25 08:00:27 2014 -0700 Committer: Alex Harui <aha...@apache.org> Committed: Thu Sep 25 08:00:27 2014 -0700 ---------------------------------------------------------------------- .../src/org/apache/flex/html/beads/TextFieldViewBase.as | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d8755674/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 006f765..bf361ef 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 @@ -92,8 +92,6 @@ package org.apache.flex.html.beads _textModel.addEventListener("widthChanged", widthChangeHandler); _textModel.addEventListener("heightChanged", heightChangeHandler); DisplayObjectContainer(value).addChild(_textField); - textField.width = DisplayObject(_strand).width; - textField.height = DisplayObject(_strand).height; if (_textModel.text !== null) text = _textModel.text; if (_textModel.html !== null) @@ -155,7 +153,6 @@ package org.apache.flex.html.beads private function textChangeHandler(event:Event):void { text = _textModel.text; - sizeChangeHandler(event); } private function htmlChangeHandler(event:Event):void @@ -172,7 +169,7 @@ package org.apache.flex.html.beads autoWidth = false; textField.width = DisplayObject(_strand).width; if (autoHeight) - textField.height = textField.textHeight + 4; + textField.height = textField.textHeight + 4; else textField.height = DisplayObject(_strand).height; }