View Full Version : [CLOSED][DUP][4.0.0] Grid components clean-up?

27 Apr 2011, 11:48 AM
I've created a very simple app based on the MVC example (simple example) that was provided with the framework which basically adds a view to a tabpanel (adds the userslist to a tabpanel).

Once I close the tab that has the userlist, it always creates 2 extra components that are added to the component manager. If i add and close the userlist tab again, it creates 2 additional components ... and so on. Is this how it's supposed to be?

These components are gridscrollers (Ext.grid.Scroller).

I'm checking the items with Ext.ComponentManager.all before and after i add the userlist tab and it can easily be seen the size increases.

Also, it seems that firefox 4 doesn't release the memory after the tab is destroyed. It builds up ~2k for each tab.

the tabpanel:

region: 'center',
margins: '0 5 5 5',
bodyPadding: 10,
xtype: 'tabpanel',
activeTab: 0,
border: false,
tabBar: {
plain: true

adding the userlist:

var tabPanel = Ext.ComponentQuery.query('homeIndex tabpanel')[0],
tab = tabPanel.child('#userlist');

tab = tabPanel.add({
xtype: 'userlist,
closable: true

27 Apr 2011, 12:17 PM
Duplicate of this? http://www.sencha.com/forum/showthread.php?131468-INFOREQ-why-the-gridscroller-didn-t-destroy-when-the-grid-destroyed

27 Apr 2011, 8:58 PM
oh, my apologies for not noticing the other thread. you can merge the 2 threads.