changeset 5606:68f799d4b93c

RT-33995: [TextField] Input Method window placed wrong when text scrolls Reviewed-by: jgiles
author leifs
date Thu, 31 Oct 2013 14:07:32 -0700
parents 2ac7d6a188dd
children d5d1dfe43275
files modules/controls/src/main/java/com/sun/javafx/scene/control/skin/TextFieldSkin.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/modules/controls/src/main/java/com/sun/javafx/scene/control/skin/TextFieldSkin.java	Thu Oct 31 13:41:00 2013 -0700
+++ b/modules/controls/src/main/java/com/sun/javafx/scene/control/skin/TextFieldSkin.java	Thu Oct 31 14:07:32 2013 -0700
@@ -693,8 +693,8 @@
 
         Bounds textBounds = textGroup.getBoundsInParent();
 
-        return new Rectangle2D(x + textBounds.getMinX(), y + textBounds.getMinY(),
-                               width, height);
+        return new Rectangle2D(x + textBounds.getMinX() + textTranslateX.get(),
+                               y + textBounds.getMinY(), width, height);
     }
 
     @Override protected PathElement[] getUnderlineShape(int start, int end) {