Here's the code I'm using to set the position:
messageLabel.setText(message);
popup.setPopupPositionAndShow(new PositionCallback() {
@Override
public void setPosition(int offsetWidth, int offsetHeight) {
popup.setPopupPosition((Window.getClientWidth() - offsetWidth) / 2, popupTop);
}
});
The PopupPanel is in a UiBinder; not sure if that's relevant. Am I doing something wrong, or should I file a bug?
-- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/OrHBZ_YgufcJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment