[pve-devel] [PATCH manager 2/2] fix button toolbar height

Dominik Csapak d.csapak at proxmox.com
Thu Mar 31 11:34:25 CEST 2016


setting the border to false, instead of setting the style
(which had the wrong syntax for extjs6 anyway)
and set the height to 36 pixesl (because of the larger font)
this makes the buttons vertically centered

to make the text on the left vertically centered, we
remove the padding

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/panel/ConfigPanel.js | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/www/manager6/panel/ConfigPanel.js b/www/manager6/panel/ConfigPanel.js
index 4e27b63..33a4832 100644
--- a/www/manager6/panel/ConfigPanel.js
+++ b/www/manager6/panel/ConfigPanel.js
@@ -43,7 +43,6 @@ Ext.define('PVE.panel.Config', {
 	    xtype: 'tbtext',
 	    text: title,
 	    baseCls: 'x-panel-header-text',
-	    padding: '0 0 5 0'
 	});
 
 
@@ -64,8 +63,8 @@ Ext.define('PVE.panel.Config', {
 
 	var toolbar = Ext.create('Ext.toolbar.Toolbar', {
 	    items: tbar,
-	    style: 'border:0px;',
-	    height: 32
+	    border: false,
+	    height: 36
 	});
 
 	var tab = Ext.create('Ext.tab.Panel', {
-- 
2.1.4





More information about the pve-devel mailing list