You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the Vaadin 7 version of PopupButton the tool tip set on the button is propagated to the popup content causing mouse overs on the content to show the tool tip.
In order to fix this I modified the PopupButtonConnector class to override the getToolTipInfo(Element element) Method like so:
@Override
public TooltipInfo getTooltipInfo(Element element) {
if (getWidget().isElementPartOfPopupButton(element)) {
return super.getTooltipInfo(element);
}
return null;
}
I also modified the VPopupButton Class by changing the constructor and adding a new field and method:
public DivElement indicatorElement;
public VPopupButton() {
super();
indicatorElement = Document.get().createDivElement();
indicatorElement.setClassName(POPUP_INDICATOR_CLASSNAME);
getElement().getFirstChildElement().appendChild(indicatorElement);
}
public boolean isElementPartOfPopupButton(Element element) {
return element.equals(getElement()) || element.equals(wrapper)
|| element.equals(captionElement)
|| element.equals(indicatorElement);
}
The text was updated successfully, but these errors were encountered:
When using the Vaadin 7 version of PopupButton the tool tip set on the button is propagated to the popup content causing mouse overs on the content to show the tool tip.
In order to fix this I modified the PopupButtonConnector class to override the getToolTipInfo(Element element) Method like so:
I also modified the VPopupButton Class by changing the constructor and adding a new field and method:
The text was updated successfully, but these errors were encountered: