[pve-devel] applied: [PATCH widget-toolkit] add labelWidth to the fieldDefaults in add_*_row

Thomas Lamprecht t.lamprecht at proxmox.com
Fri Mar 16 17:03:47 CET 2018


applied

On 03/16/2018 02:53 PM, Dominik Csapak wrote:
> this resizes the editwindow to the correct size
> 
> Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
> ---
>  grid/ObjectGrid.js | 12 ++++++++++++
>  1 file changed, 12 insertions(+)
> 
> diff --git a/grid/ObjectGrid.js b/grid/ObjectGrid.js
> index 8ac005f..bd294c8 100644
> --- a/grid/ObjectGrid.js
> +++ b/grid/ObjectGrid.js
> @@ -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,
> 





More information about the pve-devel mailing list