]> source.dussan.org Git - vaadin-framework.git/commitdiff
fixes tooltip issues #2074, sinking needed events also without error
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Tue, 16 Sep 2008 06:19:51 +0000 (06:19 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Tue, 16 Sep 2008 06:19:51 +0000 (06:19 +0000)
svn changeset:5407/svn branch:trunk

src/com/itmill/toolkit/terminal/gwt/client/ui/ILink.java

index edb924f79770c8751720ac6d99a4c0e8ab75f4f7..3617504d744d3e1dfbed149fe61b13a8ffdebbd4 100644 (file)
@@ -12,6 +12,7 @@ import com.google.gwt.user.client.ui.ClickListener;
 import com.google.gwt.user.client.ui.HTML;
 import com.google.gwt.user.client.ui.Widget;
 import com.itmill.toolkit.terminal.gwt.client.ApplicationConnection;
+import com.itmill.toolkit.terminal.gwt.client.ITooltip;
 import com.itmill.toolkit.terminal.gwt.client.Paintable;
 import com.itmill.toolkit.terminal.gwt.client.UIDL;
 
@@ -49,6 +50,7 @@ public class ILink extends HTML implements Paintable, ClickListener {
         super();
         DOM.appendChild(getElement(), captionElement);
         addClickListener(this);
+        sinkEvents(ITooltip.TOOLTIP_EVENTS);
         setStyleName(CLASSNAME);
     }
 
@@ -97,8 +99,6 @@ public class ILink extends HTML implements Paintable, ClickListener {
                 errorIndicatorElement = DOM.createDiv();
                 DOM.setElementProperty(errorIndicatorElement, "className",
                         "i-errorindicator");
-                DOM.sinkEvents(errorIndicatorElement, Event.MOUSEEVENTS);
-                sinkEvents(Event.MOUSEEVENTS);
             }
             DOM.insertChild(getElement(), errorIndicatorElement, 0);
         } else if (errorIndicatorElement != null) {