mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 19:44:52 +00:00
fix the toggle field and scrolling in the preferences window
This commit is contained in:
parent
c987b74d61
commit
61b5659972
2 changed files with 4 additions and 4 deletions
|
@ -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];
|
||||
|
|
|
@ -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);
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue