Browse Source

Ensure large tooltips can be closed on touch devices. (#12282)

Fixes #10435
tags/8.14.0.alpha1
Anna Koskinen 3 years ago
parent
commit
7ca2e1e0d5
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      client/src/main/java/com/vaadin/client/VTooltip.java

+ 1
- 1
client/src/main/java/com/vaadin/client/VTooltip.java View File

@@ -302,7 +302,7 @@ public class VTooltip extends VOverlay {
// Do not allow x to be zero, for otherwise the tooltip
// does not close when the mouse is moved (see
// isTooltipOpen()). #15129
int minX = Window.getScrollLeft();
int minX = Math.max(1, Window.getScrollLeft());
x = Math.max(x, minX);
}
return x;

Loading…
Cancel
Save