mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-09 17:18:33 +00:00
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:
parent
0d5c5e14c8
commit
37d8d60201
@ -38,6 +38,9 @@ Ext.define('Proxmox.grid.ObjectGrid', {
|
|||||||
editor: {
|
editor: {
|
||||||
xtype: 'proxmoxWindowEdit',
|
xtype: 'proxmoxWindowEdit',
|
||||||
subject: text,
|
subject: text,
|
||||||
|
fieldDefaults: {
|
||||||
|
labelWidth: opts.labelWidth || 100
|
||||||
|
},
|
||||||
items: {
|
items: {
|
||||||
xtype: 'proxmoxKVComboBox',
|
xtype: 'proxmoxKVComboBox',
|
||||||
name: name,
|
name: name,
|
||||||
@ -67,6 +70,9 @@ Ext.define('Proxmox.grid.ObjectGrid', {
|
|||||||
editor: {
|
editor: {
|
||||||
xtype: 'proxmoxWindowEdit',
|
xtype: 'proxmoxWindowEdit',
|
||||||
subject: text,
|
subject: text,
|
||||||
|
fieldDefaults: {
|
||||||
|
labelWidth: opts.labelWidth || 100
|
||||||
|
},
|
||||||
items: {
|
items: {
|
||||||
xtype: 'proxmoxtextfield',
|
xtype: 'proxmoxtextfield',
|
||||||
name: name,
|
name: name,
|
||||||
@ -95,6 +101,9 @@ Ext.define('Proxmox.grid.ObjectGrid', {
|
|||||||
editor: {
|
editor: {
|
||||||
xtype: 'proxmoxWindowEdit',
|
xtype: 'proxmoxWindowEdit',
|
||||||
subject: text,
|
subject: text,
|
||||||
|
fieldDefaults: {
|
||||||
|
labelWidth: opts.labelWidth || 100
|
||||||
|
},
|
||||||
items: {
|
items: {
|
||||||
xtype: 'proxmoxcheckbox',
|
xtype: 'proxmoxcheckbox',
|
||||||
name: name,
|
name: name,
|
||||||
@ -124,6 +133,9 @@ Ext.define('Proxmox.grid.ObjectGrid', {
|
|||||||
editor: {
|
editor: {
|
||||||
xtype: 'proxmoxWindowEdit',
|
xtype: 'proxmoxWindowEdit',
|
||||||
subject: text,
|
subject: text,
|
||||||
|
fieldDefaults: {
|
||||||
|
labelWidth: opts.labelWidth || 100
|
||||||
|
},
|
||||||
items: {
|
items: {
|
||||||
xtype: 'proxmoxintegerfield',
|
xtype: 'proxmoxintegerfield',
|
||||||
name: name,
|
name: name,
|
||||||
|
Loading…
Reference in New Issue
Block a user