import com.google.gwt.user.client.ui.Widget;
import com.vaadin.terminal.gwt.client.RenderInformation.FloatSize;
import com.vaadin.terminal.gwt.client.communication.MethodInvocation;
-import com.vaadin.terminal.gwt.client.ui.VOverlay;
public class Util {
browseElement = (Element) browseElement.getParentElement();
}
- if (browseElement == null) {
- // Element is possibly inside a VOverlay
- VOverlay overlay = findWidget(element, VOverlay.class);
- if (overlay != null && overlay.getOwner() != null) {
- return getConnectorForElement(client, RootPanel.get(), overlay
- .getOwner().getElement());
- }
- }
-
return null;
}
import com.google.gwt.user.client.Timer;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.FlowPanel;
+import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.Widget;
import com.vaadin.terminal.gwt.client.ui.VOverlay;
*/
private boolean resolveConnector(Element element) {
- ComponentConnector connector = Util.getConnectorForElement(ac, ac
- .getRootConnector().getWidget(), element);
+ ComponentConnector connector = Util.getConnectorForElement(ac,
+ RootPanel.get(), element);
// Try to find first connector with proper tooltip info
TooltipInfo info = null;