PDA

View Full Version : [FIXED] Button not centered in a form panel



zaccret
23 May 2008, 1:34 AM
Env : Windows XP, gxt 1.0beta3
A button cannot be centered in a form panel add in a viewport in both hosted mode and web mode (IE6, FF2 and FF3). You can reproduce the bug with this very simple code.

public void onModuleLoad() {
Viewport viewport = new Viewport();
FormPanel panel = new FormPanel();
panel.setButtonAlign(HorizontalAlignment.CENTER);
panel.setHeading("My panel");
panel.setWidth(200);
panel.addButton(new Button("Submit"));
viewport.add(panel);
RootPanel.get().add(viewport);
}

darrellmeyer
23 May 2008, 4:15 AM
This is fixed in SVN and tested in both host and web mode.

zaccret
23 May 2008, 4:19 AM
Thanks.