Added a default height to TextInput just like default width.

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

Branch: refs/heads/develop
Commit: bfb15c881850a87f48607ded6e8bcd1e878cc679
Parents: 90764bc
Author: Peter Ent <[email protected]>
Authored: Sun Apr 30 07:54:29 2017 -0400
Committer: Peter Ent <[email protected]>
Committed: Sun Apr 30 07:54:29 2017 -0400

----------------------------------------------------------------------
 .../src/main/flex/org/apache/flex/html/beads/TextInputView.as      | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/bfb15c88/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/TextInputView.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/TextInputView.as
 
b/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/TextInputView.as
index be59056..9d27974 100644
--- 
a/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/TextInputView.as
+++ 
b/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/TextInputView.as
@@ -99,6 +99,8 @@ package org.apache.flex.html.beads
                     textField.text = s;                    
                 }
                 ilc.setHeight(h + uiMetrics.top + uiMetrics.bottom, true);
+                               // TextInput doesn't stretch if no height like 
divs do
+                               ilc.explicitHeight = ilc.height;
             }
                        
                        heightChangeHandler(null);

Reply via email to