This is strange, I'd swear it used to work…It must then be a lower-level change, as I don't see anything suspicious in the latest changes to PopupPanel or any ancestor class.
-- J.--
You received this message because you are subscribed to a topic in the Google Groups "Google Web Toolkit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/RWjYAPGq9xw/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to google-web-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Can somebody please test the above centering of the popup ?Let's confirm that it's not only me such that I can report it as a bug.Any ideas for workarounds? (some action to trigger the correct dimensions)
public class PopupPanelTest implements EntryPoint { public void onModuleLoad() { Button showPopup = new Button("Show"); showPopup.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) {
PopupPanel popup = new PopupPanel(true);
popup.setWidget(createPopupContent());
popup.center();
}
});
RootPanel.get().add(showPopup);
}
private Widget createPopupContent() {
FlowPanel content = new FlowPanel();
content.add(new Label("Elit Lorem Vulputate. Elit Lorem Vulputate"));
content.add(new Label("Fringilla Risus Tellus Sollicitudin Commodo. Fringilla Risus Tellus Sollicitudin Commodo"));
return content;
}
}
Can you share code for a popup content that reproduces the problem?
-- J.
--