menuButton.addStyleName(style.reusableResourceButton());
menuButton.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
popupMenu.setPopupPositionAndShow(new PositionCallback() {
@Override
public void setPosition(int offsetWidth, int offsetHeight) {
popupMenu.setPopupPosition(
menuButton.getAbsoluteLeft() + menuButton.getOffsetWidth() - offsetWidth,
menuButton.getAbsoluteTop() + menuButton.getOffsetHeight());