> 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)
>
 
The code below works for me in FF 19.0.2, Chrome 25.0.xxxxx (using GWT 
2.5.1 and the Clean theme). Not sure why it does not work in your app. Do 
you do any heavy work while before/after showing the PopupPanel? Do you use 
CSS 3 transitions/animations that you can disable temporary? What happens 
in your app when you don't add "getEnsureLogin()" to the Popup but just a 
FlowPanel with some Labels like the code below?

-- J.

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;
  }
}

 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
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.


Reply via email to