summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2013-01-08 01:31:44 +0200
committerArtur Signell <artur@vaadin.com>2013-01-08 01:58:25 +0200
commit9d9df80a3b906ae50f85008153462c3abdc6779a (patch)
tree7d655d484cb4e5614b5a64b8c82eed7755ee0f6d /client
parent68406d87bb4dfb90d460ac02ef6412493f76eba7 (diff)
downloadvaadin-framework-9d9df80a3b906ae50f85008153462c3abdc6779a.tar.gz
vaadin-framework-9d9df80a3b906ae50f85008153462c3abdc6779a.zip
Only show tooltips for the Form itself (#9173)
Change-Id: Ifeeb480e8df0f88a4bb78cc6ad2cb1f77c8d0dd9
Diffstat (limited to 'client')
-rw-r--r--client/src/com/vaadin/client/ui/form/FormConnector.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/client/src/com/vaadin/client/ui/form/FormConnector.java b/client/src/com/vaadin/client/ui/form/FormConnector.java
index 45dc0f61fe..09b7fbcd91 100644
--- a/client/src/com/vaadin/client/ui/form/FormConnector.java
+++ b/client/src/com/vaadin/client/ui/form/FormConnector.java
@@ -15,6 +15,7 @@
*/
package com.vaadin.client.ui.form;
+import com.google.gwt.dom.client.Element;
import com.google.gwt.dom.client.Style.Unit;
import com.google.gwt.event.dom.client.KeyDownEvent;
import com.google.gwt.user.client.ui.Widget;
@@ -23,7 +24,9 @@ import com.vaadin.client.ComponentConnector;
import com.vaadin.client.ConnectorHierarchyChangeEvent;
import com.vaadin.client.LayoutManager;
import com.vaadin.client.Paintable;
+import com.vaadin.client.TooltipInfo;
import com.vaadin.client.UIDL;
+import com.vaadin.client.Util;
import com.vaadin.client.ui.AbstractComponentContainerConnector;
import com.vaadin.client.ui.Icon;
import com.vaadin.client.ui.ShortcutActionHandler;
@@ -206,4 +209,15 @@ public class FormConnector extends AbstractComponentContainerConnector
}
getWidget().setLayoutWidget(newLayoutWidget);
}
+
+ @Override
+ public TooltipInfo getTooltipInfo(Element element) {
+ if (Util.getConnectorForElement(getConnection(), getWidget()
+ .getParent(), (com.google.gwt.user.client.Element) element
+ .cast()) != this) {
+ // Do not show tooltips when hovering over child fields
+ return null;
+ }
+ return super.getTooltipInfo(element);
+ }
}