stever
8 Feb 2010, 4:59 PM
As of svn r6013, the CardLayout no longer honors the layoutOnCardChange, instead always doing the layout. Note that this is the opposite of the default value and opposite of the docs.
I used this:
var layout = item.doLayout && (this.layoutOnCardChange || !item.rendered);
if (layout) {
this.layout();
if(item.doLayout){
item.doLayout();
}
}
I used this:
var layout = item.doLayout && (this.layoutOnCardChange || !item.rendered);
if (layout) {
this.layout();
if(item.doLayout){
item.doLayout();
}
}