diff options
author | Leif Åstrand <leif@vaadin.com> | 2013-02-19 11:49:15 +0200 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2013-02-19 13:09:28 +0000 |
commit | 41e55b6e3887556be5c68ae0bceb65d6091140ac (patch) | |
tree | d4335460381f1d59b8a7171f54f895dbd2510316 /client | |
parent | cc5252a98ef538690250fab9952cb44dbb00fb12 (diff) | |
download | vaadin-framework-41e55b6e3887556be5c68ae0bceb65d6091140ac.tar.gz vaadin-framework-41e55b6e3887556be5c68ae0bceb65d6091140ac.zip |
Ensure there's always a listener on VUI for closing tooltips (#11051)
Change-Id: I04e8b1777bc4bf4f64371e4b6e6d77f3754162ad
Diffstat (limited to 'client')
-rw-r--r-- | client/src/com/vaadin/client/ui/ui/UIConnector.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/client/src/com/vaadin/client/ui/ui/UIConnector.java b/client/src/com/vaadin/client/ui/ui/UIConnector.java index 800f809ade..0fb7439587 100644 --- a/client/src/com/vaadin/client/ui/ui/UIConnector.java +++ b/client/src/com/vaadin/client/ui/ui/UIConnector.java @@ -44,6 +44,7 @@ import com.vaadin.client.ConnectorHierarchyChangeEvent; import com.vaadin.client.ConnectorMap; import com.vaadin.client.Focusable; import com.vaadin.client.Paintable; +import com.vaadin.client.TooltipInfo; import com.vaadin.client.UIDL; import com.vaadin.client.VConsole; import com.vaadin.client.communication.StateChangeEvent; @@ -473,6 +474,16 @@ public class UIConnector extends AbstractSingleComponentContainerConnector } } + @Override + public TooltipInfo getTooltipInfo(com.google.gwt.dom.client.Element element) { + /* + * Override method to make AbstractComponentConnector.hasTooltip() + * return true so there's a top level handler that takes care of hiding + * tooltips whenever the mouse is moved somewhere else. + */ + return super.getTooltipInfo(element); + } + /** * Tries to scroll the viewport so that the given connector is in view. * |