Env : Windows XP, GXT 1.0beta3
In some cases, checkboxes are unchecked when you resize the window (with mouse, I didn't try programmatic resize). The bug reproduces in hosted mode for me and in web mode with IE6 (no issue with FF3). Here is the code :
Code:
public void onModuleLoad(){
final Viewport viewport = new Viewport();
viewport.setLayout(new BorderLayout());
FormPanel formPanel = new FormPanel();
formPanel.setFieldWidth(200);
formPanel.setLabelWidth(100);
formPanel.setHeading("My panel");
formPanel.setWidth(350);
CheckBox checkBox = new CheckBox();
checkBox.setFieldLabel("CheckBox");
formPanel.add(checkBox);
TabPanel tabPanel = new TabPanel();
TabItem tabItem = new TabItem("form");
tabItem.add(formPanel);
tabPanel.add(tabItem);
viewport.add(tabPanel,new BorderLayoutData(LayoutRegion.CENTER));
viewport.add(new ContentPanel(),new BorderLayoutData(LayoutRegion.WEST,150));
RootPanel.get().add(viewport);
}
Important remarks :
- if I don't use BorderLayout and I only put the tab panel directly in the viewport, no issue
- if I don't use a TabPanel and I put the form panel directly in the center region, no issue
- in my application, I don't use a TabPanel but a subclass of LayoutContainer with a CardLayout.
Therefore I guess it is the combination of a CardLayouted-container in a BorderLayouted-container that causes the issue.