mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
Fix #2231 : WebUI: Fix unneeded scrollbars in webui add dialog
Also fix spinner display issue
This commit is contained in:
parent
9286d43ba8
commit
b8c345ff26
2 changed files with 8 additions and 11 deletions
|
@ -1,6 +1,6 @@
|
||||||
/*!
|
/*!
|
||||||
* Deluge.add.FilesTab.js
|
* Deluge.add.FilesTab.js
|
||||||
*
|
*
|
||||||
* Copyright (c) Damien Churchill 2009-2010 <damoxc@gmail.com>
|
* Copyright (c) Damien Churchill 2009-2010 <damoxc@gmail.com>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
@ -40,7 +40,7 @@ Deluge.add.FilesTab = Ext.extend(Ext.ux.tree.TreeGrid, {
|
||||||
layout: 'fit',
|
layout: 'fit',
|
||||||
title: _('Files'),
|
title: _('Files'),
|
||||||
|
|
||||||
autoScroll: true,
|
autoScroll: false,
|
||||||
animate: false,
|
animate: false,
|
||||||
border: false,
|
border: false,
|
||||||
disabled: true,
|
disabled: true,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*!
|
/*!
|
||||||
* Deluge.add.OptionsPanel.js
|
* Deluge.add.OptionsPanel.js
|
||||||
*
|
*
|
||||||
* Copyright (c) Damien Churchill 2009-2010 <damoxc@gmail.com>
|
* Copyright (c) Damien Churchill 2009-2010 <damoxc@gmail.com>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
@ -67,7 +67,7 @@ Deluge.add.OptionsTab = Ext.extend(Ext.form.FormPanel, {
|
||||||
width: 400,
|
width: 400,
|
||||||
labelSeparator: ''
|
labelSeparator: ''
|
||||||
}));
|
}));
|
||||||
|
|
||||||
var panel = this.add({
|
var panel = this.add({
|
||||||
border: false,
|
border: false,
|
||||||
layout: 'column',
|
layout: 'column',
|
||||||
|
@ -78,7 +78,6 @@ Deluge.add.OptionsTab = Ext.extend(Ext.form.FormPanel, {
|
||||||
border: false,
|
border: false,
|
||||||
autoHeight: true,
|
autoHeight: true,
|
||||||
defaultType: 'radio',
|
defaultType: 'radio',
|
||||||
width: 100
|
|
||||||
});
|
});
|
||||||
|
|
||||||
this.optionsManager.bind('compact_allocation', fieldset.add({
|
this.optionsManager.bind('compact_allocation', fieldset.add({
|
||||||
|
@ -86,6 +85,7 @@ Deluge.add.OptionsTab = Ext.extend(Ext.form.FormPanel, {
|
||||||
columns: 1,
|
columns: 1,
|
||||||
vertical: true,
|
vertical: true,
|
||||||
labelSeparator: '',
|
labelSeparator: '',
|
||||||
|
width: 80,
|
||||||
items: [{
|
items: [{
|
||||||
name: 'compact_allocation',
|
name: 'compact_allocation',
|
||||||
value: false,
|
value: false,
|
||||||
|
@ -107,35 +107,32 @@ Deluge.add.OptionsTab = Ext.extend(Ext.form.FormPanel, {
|
||||||
title: _('Bandwidth'),
|
title: _('Bandwidth'),
|
||||||
border: false,
|
border: false,
|
||||||
autoHeight: true,
|
autoHeight: true,
|
||||||
labelWidth: 100,
|
bodyStyle: 'margin-left: 7px',
|
||||||
|
labelWidth: 105,
|
||||||
width: 200,
|
width: 200,
|
||||||
defaultType: 'spinnerfield'
|
defaultType: 'spinnerfield'
|
||||||
});
|
});
|
||||||
this.optionsManager.bind('max_download_speed', fieldset.add({
|
this.optionsManager.bind('max_download_speed', fieldset.add({
|
||||||
fieldLabel: _('Max Down Speed'),
|
fieldLabel: _('Max Down Speed'),
|
||||||
labelStyle: 'margin-left: 10px',
|
|
||||||
name: 'max_download_speed',
|
name: 'max_download_speed',
|
||||||
width: 60
|
width: 60
|
||||||
}));
|
}));
|
||||||
this.optionsManager.bind('max_upload_speed', fieldset.add({
|
this.optionsManager.bind('max_upload_speed', fieldset.add({
|
||||||
fieldLabel: _('Max Up Speed'),
|
fieldLabel: _('Max Up Speed'),
|
||||||
labelStyle: 'margin-left: 10px',
|
|
||||||
name: 'max_upload_speed',
|
name: 'max_upload_speed',
|
||||||
width: 60
|
width: 60
|
||||||
}));
|
}));
|
||||||
this.optionsManager.bind('max_connections', fieldset.add({
|
this.optionsManager.bind('max_connections', fieldset.add({
|
||||||
fieldLabel: _('Max Connections'),
|
fieldLabel: _('Max Connections'),
|
||||||
labelStyle: 'margin-left: 10px',
|
|
||||||
name: 'max_connections',
|
name: 'max_connections',
|
||||||
width: 60
|
width: 60
|
||||||
}));
|
}));
|
||||||
this.optionsManager.bind('max_upload_slots', fieldset.add({
|
this.optionsManager.bind('max_upload_slots', fieldset.add({
|
||||||
fieldLabel: _('Max Upload Slots'),
|
fieldLabel: _('Max Upload Slots'),
|
||||||
labelStyle: 'margin-left: 10px',
|
|
||||||
name: 'max_upload_slots',
|
name: 'max_upload_slots',
|
||||||
width: 60
|
width: 60
|
||||||
}));
|
}));
|
||||||
|
|
||||||
fieldset = panel.add({
|
fieldset = panel.add({
|
||||||
title: _('General'),
|
title: _('General'),
|
||||||
border: false,
|
border: false,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue