changeset 292:e54287f1dcdc

Fixed RT-18995: FXML-LoginDemo username textbox text does not display while typing
author leifs
date Fri, 20 Jan 2012 10:51:52 -0800
parents b3a9c6786253
children fbb1b38c01d3
files javafx-ui-controls/src/com/sun/javafx/scene/control/skin/TextFieldSkin.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/TextFieldSkin.java	Fri Jan 20 10:17:53 2012 -0800
+++ b/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/TextFieldSkin.java	Fri Jan 20 10:51:52 2012 -0800
@@ -292,7 +292,7 @@
         textNode.impl_caretShapeProperty().addListener(new InvalidationListener() {
             @Override public void invalidated(Observable observable) {
                 caretPath.getElements().setAll(textNode.impl_caretShapeProperty().get());
-                caretWidth = caretPath.getLayoutBounds().getWidth();
+                caretWidth = Math.round(caretPath.getLayoutBounds().getWidth());
             }
         });