Friday, April 29, 2011 does not center correctly


I have a problem with centering a DialogBox.

I create it, add some widgets (the size of which I set at the same
time!), and call center:

DialogBox d = new DialogBox ();
AbsolutePanel t = new AbsolutePanel();

However, the DialogBox is not centered correctly. It's placed too much
to the right. (If its size is smaller, it's placed too much to the
left. #-))

I wondered if i should call forceLayout, but there is no such method
in DialogBox.

What can I do?


You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment