changeset 5520:659cc7864404

RT-33620: TextField should not shrink vertically by default Reviewed-by: jgiles
author leifs
date Thu, 24 Oct 2013 12:33:29 -0700
parents c0c85cc23907
children eff80ffc9116
files modules/controls/src/main/java/com/sun/javafx/scene/control/skin/TextFieldSkin.java
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/modules/controls/src/main/java/com/sun/javafx/scene/control/skin/TextFieldSkin.java	Thu Oct 24 11:38:07 2013 -0700
+++ b/modules/controls/src/main/java/com/sun/javafx/scene/control/skin/TextFieldSkin.java	Thu Oct 24 12:33:29 2013 -0700
@@ -481,6 +481,10 @@
         return columnCount * characterWidth + leftInset + rightInset;
     }
 
+    @Override protected double computeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) {
+        return computePrefHeight(width, topInset, rightInset, bottomInset, leftInset);
+    }
+
     @Override protected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) {
         return topInset + textNode.getLayoutBounds().getHeight() + bottomInset;
     }