Procházet zdrojové kódy

Tooltip position calculations now includes window scroll position (fixes #1812)

svn changeset:4866/svn branch:trunk
tags/6.7.0.beta1
Marc Englund před 16 roky
rodič
revize
44dc01d556

+ 2
- 2
src/com/itmill/toolkit/terminal/gwt/client/Tooltip.java Zobrazit soubor

@@ -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()) {

Načítá se…
Zrušit
Uložit