Hi
I have a Welcome panel like this,
class Welcome extends HorizontalPanel {
Welcome() {
setHorizontalAlignment(HorizontalPanel.ALIGN_CENTER);
setVerticalAlignment(HorizontalPanel.ALIGN_MIDDLE);
setHeight("100%");
setWidth("100%");
HorizontalPanel panel = new HorizontalPanel();
panel.setHeight("50%");
panel.setWidth("80%");
panel.setStyleName("dummy");
panel.add(new Label("xxxxxxxxx"));
// the panel is aligned top-center, why it does not align
middle-center?
add(panel);
}
}
and this Welcome panel is added to RootPanel like this,
public void onModuleLoad() {
Welcome welcome = new Welcome();
RootPanel panel = RootPanel.get();
panel.add(welcome);
}
and the dummy CSS is as simple as,
.dummy {
border: 1px solid #BBBBBB;
background: #C3D9FF;
}
when tested in GWT 1.5.3 hosted mode, why the Welcome panel is aligned
top-center even though I
have setVerticalAlignment(HorizontalPanel.ALIGN_MIDDLE)?
--
Hez
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---