]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
add labelWidth to the fieldDefaults in add_*_row
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 16 Mar 2018 13:53:54 +0000 (14:53 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 16 Mar 2018 15:01:57 +0000 (16:01 +0100)
this resizes the editwindow to the correct size

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
grid/ObjectGrid.js

index 8ac005fc709498d6ee83f94bc2dfd77db2c5bf82..bd294c8f6c1fc414b8dea3bd4e0d55a253b61a0f 100644 (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,