Module: deluge
Branch: master
Commit: fe44a5ba69df57292ab6e50510a371fa852a246b

Author: Calum Lind <[email protected]>
Date:   Sat Dec  8 17:59:09 2012 +0000

Fix #2231 : WebUI: Fix unneeded scrollbars in webui add dialog

Also fix spinner display issue

---

 deluge/ui/web/js/deluge-all/add/FilesTab.js   |    4 ++--
 deluge/ui/web/js/deluge-all/add/OptionsTab.js |   15 ++++++---------
 2 files changed, 8 insertions(+), 11 deletions(-)

diff --git a/deluge/ui/web/js/deluge-all/add/FilesTab.js 
b/deluge/ui/web/js/deluge-all/add/FilesTab.js
index 3e62482..709105b 100644
--- a/deluge/ui/web/js/deluge-all/add/FilesTab.js
+++ b/deluge/ui/web/js/deluge-all/add/FilesTab.js
@@ -1,6 +1,6 @@
 /*!
  * Deluge.add.FilesTab.js
- * 
+ *
  * Copyright (c) Damien Churchill 2009-2010 <[email protected]>
  *
  * 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',
     title:  _('Files'),
 
-    autoScroll:  true,
+    autoScroll:  false,
     animate:     false,
     border:      false,
     disabled:    true,
diff --git a/deluge/ui/web/js/deluge-all/add/OptionsTab.js 
b/deluge/ui/web/js/deluge-all/add/OptionsTab.js
index c65dc6f..9ea306c 100644
--- a/deluge/ui/web/js/deluge-all/add/OptionsTab.js
+++ b/deluge/ui/web/js/deluge-all/add/OptionsTab.js
@@ -1,6 +1,6 @@
 /*!
  * Deluge.add.OptionsPanel.js
- * 
+ *
  * Copyright (c) Damien Churchill 2009-2010 <[email protected]>
  *
  * 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,
             labelSeparator: ''
         }));
-    
+
         var panel = this.add({
             border: false,
             layout: 'column',
@@ -78,7 +78,6 @@ Deluge.add.OptionsTab = Ext.extend(Ext.form.FormPanel, {
             border: false,
             autoHeight: true,
             defaultType: 'radio',
-            width: 100
         });
 
         this.optionsManager.bind('compact_allocation', fieldset.add({
@@ -86,6 +85,7 @@ Deluge.add.OptionsTab = Ext.extend(Ext.form.FormPanel, {
             columns: 1,
             vertical: true,
             labelSeparator: '',
+            width: 80,
             items: [{
                 name: 'compact_allocation',
                 value: false,
@@ -107,35 +107,32 @@ Deluge.add.OptionsTab = Ext.extend(Ext.form.FormPanel, {
             title: _('Bandwidth'),
             border: false,
             autoHeight: true,
-            labelWidth: 100,
+            bodyStyle: 'margin-left: 7px',
+            labelWidth: 105,
             width: 200,
             defaultType: 'spinnerfield'
         });
         this.optionsManager.bind('max_download_speed', fieldset.add({
             fieldLabel: _('Max Down Speed'),
-            labelStyle: 'margin-left: 10px',
             name: 'max_download_speed',
             width: 60
         }));
         this.optionsManager.bind('max_upload_speed', fieldset.add({
             fieldLabel: _('Max Up Speed'),
-            labelStyle: 'margin-left: 10px',
             name: 'max_upload_speed',
             width: 60
         }));
         this.optionsManager.bind('max_connections', fieldset.add({
             fieldLabel: _('Max Connections'),
-            labelStyle: 'margin-left: 10px',
             name: 'max_connections',
             width: 60
         }));
         this.optionsManager.bind('max_upload_slots', fieldset.add({
             fieldLabel: _('Max Upload Slots'),
-            labelStyle: 'margin-left: 10px',
             name: 'max_upload_slots',
             width: 60
         }));
-    
+
         fieldset = panel.add({
             title: _('General'),
             border: false,

-- 
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en.

Reply via email to