fix the dodgy splitter positions on the spinners

This commit is contained in:
Damien Churchill 2009-07-30 22:26:23 +00:00
commit 0c4cc4d0e2

View file

@ -32,8 +32,7 @@ Copyright:
*/ */
(function() { Ext.deluge.PreferencesWindow = Ext.extend(Ext.Window, {
Ext.deluge.PreferencesWindow = Ext.extend(Ext.Window, {
constructor: function(config) { constructor: function(config) {
config = Ext.apply({ config = Ext.apply({
layout: 'border', layout: 'border',
@ -44,7 +43,7 @@ Copyright:
closable: true, closable: true,
iconCls: 'x-deluge-preferences', iconCls: 'x-deluge-preferences',
plain: true, plain: true,
resizable: true, resizable: false,
title: _('Preferences'), title: _('Preferences'),
currentPage: false, currentPage: false,
@ -114,7 +113,8 @@ Copyright:
store.loadData([[name]], true); store.loadData([[name]], true);
page['bodyStyle'] = 'margin: 5px'; page['bodyStyle'] = 'margin: 5px';
this.pages[name] = this.configPanel.add(page); this.pages[name] = this.configPanel.add(page);
this.pages[name].hide(); this.pages[name].setWidth(365);
this.pages[name].setHeight(410);
}, },
/** /**
@ -154,7 +154,6 @@ Copyright:
scope: this scope: this
}) })
} }
}); });
Deluge.Preferences = new Ext.deluge.PreferencesWindow(); Deluge.Preferences = new Ext.deluge.PreferencesWindow();
})();