changeset 5707:5aeba5429cb4

RT-34063 HTMLEditor: Input method lookup window overlaps composing area.
author peterz
date Wed, 13 Nov 2013 19:00:01 +0400
parents be453268f7f8
children 51df0f4050ad
files modules/web/src/main/java/com/sun/javafx/webkit/InputMethodClientImpl.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/modules/web/src/main/java/com/sun/javafx/webkit/InputMethodClientImpl.java	Wed Nov 13 18:59:45 2013 +0400
+++ b/modules/web/src/main/java/com/sun/javafx/webkit/InputMethodClientImpl.java	Wed Nov 13 19:00:01 2013 +0400
@@ -96,7 +96,9 @@
     // InputMethodRequests implementation
     public Point2D getTextLocation(int offset) {
         int[] loc = webPage.getClientTextLocation(offset);
-        WCPoint point = webPage.getPageClient().windowToScreen(new WCPoint(loc[0], loc[1]));
+        WCPoint point = webPage.getPageClient().windowToScreen(
+                // We need lower left corner of the char bounds rectangle here
+                new WCPoint(loc[0], loc[1] + loc[3]));
         return new Point2D(point.getIntX(), point.getIntY());
     }