]> source.dussan.org Git - vaadin-framework.git/commitdiff
Tooltip position calculations now includes window scroll position (fixes #1812)
authorMarc Englund <marc.englund@itmill.com>
Fri, 13 Jun 2008 10:41:42 +0000 (10:41 +0000)
committerMarc Englund <marc.englund@itmill.com>
Fri, 13 Jun 2008 10:41:42 +0000 (10:41 +0000)
svn changeset:4866/svn branch:trunk

src/com/itmill/toolkit/terminal/gwt/client/Tooltip.java

index a1685d17fc1f6b379e55121b0ed051c3f55e3a8b..0de9a6b55c7b9532c390756e4d807d8b31336cd7 100644 (file)
@@ -63,8 +63,8 @@ public class Tooltip extends ToolkitOverlay {
 
                     offsetWidth = getOffsetWidth();
 
-                    int x = tooltipEventMouseX + 10;
-                    int y = tooltipEventMouseY + 10;
+                    int x = tooltipEventMouseX + 10 + Window.getScrollLeft();
+                    int y = tooltipEventMouseY + 10 + Window.getScrollTop();
 
                     if (x + offsetWidth + MARGIN - Window.getScrollLeft() > Window
                             .getClientWidth()) {