On Dec 15, 3:08 pm, jbdhl wrote:
> To answer my own question, the following seem to work:
>
> HorizontalPanel h = new HorizontalPanel();
> h.setSize("100%", "100%");
> h.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
> h.setVerticalAlignment(HasVertic
To answer my own question, the following seem to work:
HorizontalPanel h = new HorizontalPanel();
h.setSize("100%", "100%");
h.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
h.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
h.add(myWid
How do I center a widget at the middle of the screen, both
horizontally and vertically? I've failed to find a panel that supports
this kind of centering.
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group