diff options
author | Juuso Valli <juuso@vaadin.com> | 2014-06-02 17:28:49 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2014-06-03 13:32:53 +0000 |
commit | bbfb23632b27f0e1a2972d960295422b2a878d7c (patch) | |
tree | 17f8a12ab3186b5bf89de3d621e8eb12ee53124b /client | |
parent | 85efc3bff1bdbe6ca19316a7eb6b8cc34d97f9c7 (diff) | |
download | vaadin-framework-bbfb23632b27f0e1a2972d960295422b2a878d7c.tar.gz vaadin-framework-bbfb23632b27f0e1a2972d960295422b2a878d7c.zip |
Fix menu item tooltips showing up too early (#13914)
Change-Id: Id324ed06e45e73a9383667e86651ea794c3ff322
Diffstat (limited to 'client')
-rw-r--r-- | client/src/com/vaadin/client/VTooltip.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/src/com/vaadin/client/VTooltip.java b/client/src/com/vaadin/client/VTooltip.java index 487f577ae3..1410d1345e 100644 --- a/client/src/com/vaadin/client/VTooltip.java +++ b/client/src/com/vaadin/client/VTooltip.java @@ -234,8 +234,10 @@ public class VTooltip extends VWindowOverlay { // already about to close return; } - closeTimer.schedule(getCloseTimeout()); - closing = true; + if (isActuallyVisible()) { + closeTimer.schedule(getCloseTimeout()); + closing = true; + } } @Override @@ -348,8 +350,6 @@ public class VTooltip extends VWindowOverlay { /** * Handle hide event * - * @param event - * Event causing hide */ private void handleHideEvent() { hideTooltip(); |