[WebUI] Tidyup Add dialog margins
This commit is contained in:
parent
2aa1ab2f2b
commit
590f077963
|
@ -96,7 +96,7 @@ Deluge.add.AddWindow = Ext.extend(Deluge.add.Window, {
|
||||||
this.add({
|
this.add({
|
||||||
region: 'center',
|
region: 'center',
|
||||||
items: [this.list],
|
items: [this.list],
|
||||||
margins: '5 5 5 5',
|
border: false,
|
||||||
bbar: new Ext.Toolbar({
|
bbar: new Ext.Toolbar({
|
||||||
items: [{
|
items: [{
|
||||||
id: 'fileUploadForm',
|
id: 'fileUploadForm',
|
||||||
|
|
|
@ -15,7 +15,7 @@ Deluge.add.OptionsPanel = Ext.extend(Ext.TabPanel, {
|
||||||
|
|
||||||
// layout options
|
// layout options
|
||||||
region: 'south',
|
region: 'south',
|
||||||
margins: '5 5 5 5',
|
border: false,
|
||||||
activeTab: 0,
|
activeTab: 0,
|
||||||
height: 265,
|
height: 265,
|
||||||
|
|
||||||
|
|
|
@ -15,12 +15,11 @@ Ext.ns('Deluge.add');
|
||||||
*/
|
*/
|
||||||
Deluge.add.OptionsTab = Ext.extend(Ext.form.FormPanel, {
|
Deluge.add.OptionsTab = Ext.extend(Ext.form.FormPanel, {
|
||||||
|
|
||||||
title: _('Options'),
|
title: _('Options'),
|
||||||
height: 170,
|
height: 170,
|
||||||
|
border: false,
|
||||||
border: false,
|
bodyStyle: 'padding: 5px',
|
||||||
bodyStyle: 'padding: 5px',
|
disabled: true,
|
||||||
disabled: true,
|
|
||||||
labelWidth: 1,
|
labelWidth: 1,
|
||||||
|
|
||||||
initComponent: function() {
|
initComponent: function() {
|
||||||
|
@ -36,7 +35,7 @@ Deluge.add.OptionsTab = Ext.extend(Ext.form.FormPanel, {
|
||||||
defaultType: 'textfield',
|
defaultType: 'textfield',
|
||||||
labelWidth: 1,
|
labelWidth: 1,
|
||||||
fieldLabel: '',
|
fieldLabel: '',
|
||||||
style: 'padding-bottom: 5px; margin-bottom: 0px;'
|
style: 'padding: 5px 0; margin-bottom: 0;'
|
||||||
});
|
});
|
||||||
this.optionsManager.bind('download_location', fieldset.add({
|
this.optionsManager.bind('download_location', fieldset.add({
|
||||||
fieldLabel: '',
|
fieldLabel: '',
|
||||||
|
@ -52,7 +51,7 @@ Deluge.add.OptionsTab = Ext.extend(Ext.form.FormPanel, {
|
||||||
defaultType: 'togglefield',
|
defaultType: 'togglefield',
|
||||||
labelWidth: 1,
|
labelWidth: 1,
|
||||||
fieldLabel: '',
|
fieldLabel: '',
|
||||||
style: 'padding-bottom: 5px; margin-bottom: 0px;'
|
style: 'padding: 5px 0; margin-bottom: 0;'
|
||||||
});
|
});
|
||||||
var field = fieldset.add({
|
var field = fieldset.add({
|
||||||
fieldLabel: '',
|
fieldLabel: '',
|
||||||
|
@ -72,10 +71,11 @@ Deluge.add.OptionsTab = Ext.extend(Ext.form.FormPanel, {
|
||||||
title: _('Bandwidth'),
|
title: _('Bandwidth'),
|
||||||
border: false,
|
border: false,
|
||||||
autoHeight: true,
|
autoHeight: true,
|
||||||
bodyStyle: 'margin-left: 7px',
|
bodyStyle: 'padding: 2px 5px',
|
||||||
labelWidth: 105,
|
labelWidth: 105,
|
||||||
width: 200,
|
width: 200,
|
||||||
defaultType: 'spinnerfield'
|
defaultType: 'spinnerfield',
|
||||||
|
style: 'padding-right: 10px;'
|
||||||
});
|
});
|
||||||
this.optionsManager.bind('max_download_speed', fieldset.add({
|
this.optionsManager.bind('max_download_speed', fieldset.add({
|
||||||
fieldLabel: _('Max Down Speed'),
|
fieldLabel: _('Max Down Speed'),
|
||||||
|
|
Loading…
Reference in New Issue