PDA

View Full Version : [CLOSED] Button drawn out of its form panel



zaccret
23 May 2008, 1:13 AM
Env : Win XP, gxt 1.0beta3
Sometimes, a button add in a form panel is not drawn in the form panel. I noticed the issue on both hosted mode and web mode (IE6, FF2 and FF3).

public void onModuleLoad() {
final Viewport viewport = new Viewport();
viewport.setLayout(new CenterLayout());
final FormPanel formPanel = new FormPanel();
formPanel.setHeading("My panel");
formPanel.setWidth(200);
Button submitButton = new Button("Submit");
formPanel.addButton(submitButton);
viewport.add(formPanel);
RootPanel.get().add(viewport);
}

zaccret
23 May 2008, 1:18 AM
By the way, if I add panel.setFrame(true), it is ok with Firefox but the border is incomplete with IE.

zaccret
9 Jun 2008, 11:18 PM
With beta4, no more issue with setFrame(true), great! But with setFrame(false), the button is still drawn out of the panel. Look at the screenshots.

darrellmeyer
10 Jun 2008, 5:58 AM
This is not a bug. When not framing, the button bar is outside the body element. Take a look at http://extjs.com/explorer/#tabpanelform.

zaccret
10 Jun 2008, 9:54 PM
Ok. Sorry for the mistake.