You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by pe...@apache.org on 2017/04/30 11:54:31 UTC
git commit: [flex-asjs] [refs/heads/dual] - Added a default height to
TextInput just like default width.
Repository: flex-asjs
Updated Branches:
refs/heads/dual 90764bc01 -> bfb15c881
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/dual
Commit: bfb15c881850a87f48607ded6e8bcd1e878cc679
Parents: 90764bc
Author: Peter Ent <pe...@apache.org>
Authored: Sun Apr 30 07:54:29 2017 -0400
Committer: Peter Ent <pe...@apache.org>
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);