PDA

View Full Version : [2.0b1][CLOSED] TabPanel : autoDestroy error



obone
17 Oct 2007, 8:02 AM
Hi,
I use ext-js v2.0 and i think i found a bug (and resolved it)
The problem come when i create dynamically a TabPanel with autoDestroy attribute to "false" (and closable to "true"), and after closing, the <div /> content was removed from DOM. I search the bug and finally, in file ext-all-debug.js, i did the change at line no 18326 (changes in red):

var t = this.findTargets(e);
if(t.close){
if(t.item.autoShow) {
t.item.el.addClass('x-hidden');
}
this.remove(t.item,t.item.autoDestroy);
return;
}

after that it works.
So i hope, this can help.
Bye;)

jsakalos
18 Oct 2007, 6:09 PM
Thank you for posting. We will investigate it and fix it.

jack.slocum
20 Oct 2007, 7:38 AM
The div is always going to be removed from the DOM. The difference is whether or not the component and DOM node are destroyed.

autoDestroy:false does not mean leave the DOM node there, it means don't call destroy() on the component.