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.csa...@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



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to