From: Matti Tahvonen Date: Fri, 15 Apr 2011 10:05:16 +0000 (+0000) Subject: fixes #6842, descriptions now shown from the whole component X-Git-Tag: 6.7.0.beta1~336 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d4f15a897f067ff38582e3969249b1516a08f734;p=vaadin-framework.git fixes #6842, descriptions now shown from the whole component svn changeset:18319/svn branch:6.6 --- diff --git a/src/com/vaadin/terminal/gwt/client/ui/VUpload.java b/src/com/vaadin/terminal/gwt/client/ui/VUpload.java index 799812396e..c654ddd88b 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VUpload.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VUpload.java @@ -25,6 +25,7 @@ import com.vaadin.terminal.gwt.client.ApplicationConnection; import com.vaadin.terminal.gwt.client.Paintable; import com.vaadin.terminal.gwt.client.UIDL; import com.vaadin.terminal.gwt.client.VConsole; +import com.vaadin.terminal.gwt.client.VTooltip; /** * @@ -126,6 +127,16 @@ public class VUpload extends SimplePanel implements Paintable { panel.add(submitButton); setStyleName(CLASSNAME); + + sinkEvents(VTooltip.TOOLTIP_EVENTS); + } + + @Override + public void onBrowserEvent(Event event) { + if ((event.getTypeInt() & VTooltip.TOOLTIP_EVENTS) > 0) { + client.handleTooltipEvent(event, this); + } + super.onBrowserEvent(event); } private static native void setEncoding(Element form, String encoding)