web: fix selecting the active tab

Fix selecting the active tab in the details panel, it seems that
the activeTab property wasn't working so explicitly call
setActiveTab after adding in the various panels.
This commit is contained in:
Damien Churchill 2011-10-05 01:54:33 +01:00
commit 4ab5c6d9de

View file

@ -43,7 +43,6 @@ Ext.define('Deluge.details.DetailsPanel', {
minSize: 100,
collapsible: true,
margins: '0 5 5 5',
activeTab: 0,
initComponent: function() {
this.callParent(arguments);
@ -52,6 +51,7 @@ Ext.define('Deluge.details.DetailsPanel', {
this.add(Ext.create('Deluge.details.FilesTab'));
this.add(Ext.create('Deluge.details.PeersTab'));
this.add(Ext.create('Deluge.details.OptionsTab'));
this.setActiveTab(0);
},
clear: function() {