diff options
author | Anna Koskinen <Ansku@users.noreply.github.com> | 2021-04-30 14:34:16 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-30 14:34:16 +0300 |
commit | 7ca2e1e0d5b69cc8a8237a73e57ce5cc46415c1c (patch) | |
tree | a888c422e25be734832ef83c3bcdcf26f00659fc /client | |
parent | 8c11cc6c9210e41b1e9981a04e56dd59d462da91 (diff) | |
download | vaadin-framework-7ca2e1e0d5b69cc8a8237a73e57ce5cc46415c1c.tar.gz vaadin-framework-7ca2e1e0d5b69cc8a8237a73e57ce5cc46415c1c.zip |
Ensure large tooltips can be closed on touch devices. (#12282)
Fixes #10435
Diffstat (limited to 'client')
-rw-r--r-- | client/src/main/java/com/vaadin/client/VTooltip.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/main/java/com/vaadin/client/VTooltip.java b/client/src/main/java/com/vaadin/client/VTooltip.java index 9e5b85c4e8..8bd97b40d7 100644 --- a/client/src/main/java/com/vaadin/client/VTooltip.java +++ b/client/src/main/java/com/vaadin/client/VTooltip.java @@ -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; |