ui: labelWidth gets px suffixed so auto won't work

This is a common mistake with widths in ExtJS, most of them have the
'px' unit implicit, so using things like 'auto' or '100%' does not
works with them.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2019-10-04 14:38:31 +02:00
parent f5e33d4656
commit 93d94f627c

View File

@ -225,7 +225,7 @@ Ext.define('PVE.window.Settings', {
{
xtype: 'displayfield',
fieldLabel: gettext('Saved User Name:'),
labelWidth: 'auto',
labelWidth: '150',
stateId: 'login-username',
reference: 'savedUserName',
flex: 1,