PDA

View Full Version : LayoutRegion.clearPanels broken in RC2



tryanDLS
28 Nov 2006, 2:09 PM
Method is commented out with a 'broken' comment.

EDIT - I did some more playing with this trying to code a work around. It looks like removing the panels in FIFO order works, but LIFO just goes into a loop somewhere.

So this works


while (region.panels.getCount() >0)
region.remove(region.panels.first());


but this fails


while (region.panels.getCount() >0)
region.remove(region.panels.last());

jack.slocum
28 Nov 2006, 4:55 PM
I put it in. Thanks.

jbowman
2 Dec 2006, 6:50 PM
This was broken again in the last svn sync I did. It was



clearPanels : function(){
while(this.panels.getCount() > 0){
this.remove(region.panels.first());
}
},



and I changed it to



clearPanels : function(){
while(this.panels.getCount() > 0){
this.remove(this.panels.first());
}
},

jack.slocum
3 Dec 2006, 5:32 AM
That looks like a bone headed one. Thanks!

jbowman
3 Dec 2006, 8:28 AM
that's 1 of yours for like 10 of mine you've caught for me. :lol: