zaccret
30 May 2008, 1:18 AM
Env : Windows XP, gxt 1.0beta3
Padding is missing on Firefox 2/3 in a form panel. No issue on IE6. If I compare with IE6, using IE Toolbar and Firebug, I see "padding-*: 20px;" in the style attribute of the div container (div class="x-panel-body") on IE6, not on FF.
Simple code to reproduce the bug:
public void onModuleLoad() {
final Viewport viewport = new Viewport();
final FormPanel formPanel = new FormPanel();
formPanel.setStyleAttribute("padding", "20px");
formPanel.setHeading("My panel");
formPanel.setLabelWidth(100);
formPanel.setFieldWidth(150);
formPanel.setWidth(350);
TextField textField = new TextField();
textField.setFieldLabel("Field");
formPanel.add(textField);
viewport.add(formPanel);
RootPanel.get().add(viewport);
}
Padding is missing on Firefox 2/3 in a form panel. No issue on IE6. If I compare with IE6, using IE Toolbar and Firebug, I see "padding-*: 20px;" in the style attribute of the div container (div class="x-panel-body") on IE6, not on FF.
Simple code to reproduce the bug:
public void onModuleLoad() {
final Viewport viewport = new Viewport();
final FormPanel formPanel = new FormPanel();
formPanel.setStyleAttribute("padding", "20px");
formPanel.setHeading("My panel");
formPanel.setLabelWidth(100);
formPanel.setFieldWidth(150);
formPanel.setWidth(350);
TextField textField = new TextField();
textField.setFieldLabel("Field");
formPanel.add(textField);
viewport.add(formPanel);
RootPanel.get().add(viewport);
}