[pve-devel] [PATCH manager] ui: window/Settings: fix labelWidth for saved user name

Dominik Csapak d.csapak at proxmox.com
Fri Feb 19 15:27:00 CET 2021


Somewhere during rendering of the window, extjs wants to add 5px to
the labelwidth for the surrounding container. Having a string here
results in the container having a width of 1505px instead of 155px and
the value of the field is far off to the right and not visible.

Changing to a number fixes that.

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/window/Settings.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/manager6/window/Settings.js b/www/manager6/window/Settings.js
index c92d2a25..75feb373 100644
--- a/www/manager6/window/Settings.js
+++ b/www/manager6/window/Settings.js
@@ -238,7 +238,7 @@ Ext.define('PVE.window.Settings', {
 		    {
 			xtype: 'displayfield',
 			fieldLabel: gettext('Saved User Name') + ':',
-			labelWidth: '150',
+			labelWidth: 150,
 			stateId: 'login-username',
 			reference: 'savedUserName',
 			flex: 1,
-- 
2.20.1





More information about the pve-devel mailing list