add labelWidth to the fieldDefaults in add_*_row

this resizes the editwindow to the correct size

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2018-03-16 14:53:54 +01:00 committed by Thomas Lamprecht
parent 0d5c5e14c8
commit 37d8d60201

View File

@ -38,6 +38,9 @@ Ext.define('Proxmox.grid.ObjectGrid', {
editor: {
xtype: 'proxmoxWindowEdit',
subject: text,
fieldDefaults: {
labelWidth: opts.labelWidth || 100
},
items: {
xtype: 'proxmoxKVComboBox',
name: name,
@ -67,6 +70,9 @@ Ext.define('Proxmox.grid.ObjectGrid', {
editor: {
xtype: 'proxmoxWindowEdit',
subject: text,
fieldDefaults: {
labelWidth: opts.labelWidth || 100
},
items: {
xtype: 'proxmoxtextfield',
name: name,
@ -95,6 +101,9 @@ Ext.define('Proxmox.grid.ObjectGrid', {
editor: {
xtype: 'proxmoxWindowEdit',
subject: text,
fieldDefaults: {
labelWidth: opts.labelWidth || 100
},
items: {
xtype: 'proxmoxcheckbox',
name: name,
@ -124,6 +133,9 @@ Ext.define('Proxmox.grid.ObjectGrid', {
editor: {
xtype: 'proxmoxWindowEdit',
subject: text,
fieldDefaults: {
labelWidth: opts.labelWidth || 100
},
items: {
xtype: 'proxmoxintegerfield',
name: name,