fix the toggle field and scrolling in the preferences window

This commit is contained in:
Damien Churchill 2010-03-28 05:24:21 +01:00
parent c987b74d61
commit 61b5659972
2 changed files with 4 additions and 4 deletions

View File

@ -96,8 +96,8 @@ Deluge.preferences.PreferencesWindow = Ext.extend(Ext.Window, {
autoDestroy: false,
region: 'center',
layout: 'card',
//height: 400,
//autoScroll: true,
autoScroll: true,
width: 300,
margins: '5 5 5 5',
cmargins: '5 5 5 5'
});
@ -159,7 +159,7 @@ Deluge.preferences.PreferencesWindow = Ext.extend(Ext.Window, {
var store = this.categoriesGrid.getStore();
var name = page.title;
store.add([new PreferencesRecord({name: name})]);
page['bodyStyle'] = 'margin: 5px';
page['bodyStyle'] = 'padding: 5px';
page.preferences = this;
this.pages[name] = this.configPanel.add(page);
return this.pages[name];

View File

@ -53,7 +53,7 @@ Ext.ux.form.ToggleField = Ext.extend(Ext.form.Field, {
this.panel.doLayout();
// we substract 10 for the padding :-)
var inputWidth = w - this.toggle.getSize().width - 10;
var inputWidth = w - this.toggle.getSize().width - 25;
this.input.setSize(inputWidth, h);
},