PDA

View Full Version : [FIXED] Checkbox unchecked on resize with IE6



zaccret
28 May 2008, 1:53 AM
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 :

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.

darrellmeyer
28 May 2008, 2:16 PM
There was a problem with card layout and resetting the pages content. It is the same issue as scroll position being reset when traversing the tabs in a tabpanel. This is fixed in SVN.

zaccret
28 May 2008, 10:16 PM
Great =D> ! Thanks !