Sunday, May 1, 2011

Re: DialogBox.center does not center correctly

Delete the css style relationate to the size. Check if you have a file too with this style

2011/4/29 Magnus <alpineblaster@googlemail.com>
Hi,

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:
(Pseudecode)

DialogBox d = new DialogBox ();
AbsolutePanel t = new AbsolutePanel();
t.setSize("1000px","700px");
d.add(t);
d.center();

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?

Thanks
Magnus

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
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.


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
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