mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-18 22:36:51 +00:00
fix the toggle field and scrolling in the preferences window
This commit is contained in:
parent
c987b74d61
commit
61b5659972
@ -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…
x
Reference in New Issue
Block a user