PDA

View Full Version : [FNR] Box label of checkbox moves every time the checkbox becomes visible



tikvar
29 Nov 2010, 3:52 AM
[GXT 2.2.1, FF3.6 & IE8, Linux & Windows, DevMode]

Hi,

It seems that every time a checkbox is made visible its box label moves by a few pixels to the right (see attached image).


public class CheckBoxBugWindow extends Window {
public CheckBoxBugWindow() {
FormPanel form = new FormPanel();
form.setHeaderVisible(false);
form.setBodyBorder(false);
setLayout(new RowLayout());
add(form, new RowData(1,1));
setSize(300, 300);

CheckBox c = new CheckBox();
c.setFieldLabel("Check 1");
c.setBoxLabel("Normal label");
form.add(c);

final CheckBox check = new CheckBox();
check.setFieldLabel("Check 2");
check.setBoxLabel("Moving label");
form.add(check);

addButton(new Button("Press me multiple times", new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent ce) {
check.setVisible(!check.isVisible());
}
}));
}
}

sven
29 Nov 2010, 4:25 AM
This was reported before and we a fix will be in SVN shortly.

tikvar
29 Nov 2010, 5:06 AM
Thanks!

sven
29 Nov 2010, 6:12 AM
This should be fixed in SVN now as of revision 2343.