PDA

View Full Version : [FIXED] FieldSet collapse bug



alawi
1 Sep 2008, 8:47 PM
Hello guys,

The fieldSet collapse function is not doing anything for me.

FieldSet fs= new FieldSet();
fs.setLayout(new FormLayout());
fs.setWidth(ClientConstants.FORMS_WIDTH);
fs.setCollapsible(true);
fs.collapse(); //<--- Does nothing ;(
fs.setHeading("please work!");
add(fs);

Also the name collapse is really confusing, something like setCollapsed(boolean collapsed); would have been better... Anyone?

gxt-1.1-alpha3

Regards,
Ali
http://extjs.com/forum/images/misc/progress.gif http://extjs.com/forum/images/buttons/edit.gif (http://extjs.com/forum/editpost.php?do=editpost&p=217417)

darrellmeyer
2 Sep 2008, 4:44 PM
Calling collapse() pre-render was not working. Fix is in SVN.

alawi
2 Sep 2008, 10:32 PM
Thank you darrell!:D