From fd1e185096b9d10f574c493f8b9a07959d608034 Mon Sep 17 00:00:00 2001 From: Benjamin Renard <benjamin.renard@akka.eu> Date: Fri, 30 Aug 2019 08:31:42 +0200 Subject: [PATCH] Apply minWidth to ctalog columns (cf. #7096) --- js/app/views/CatalogUI.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/js/app/views/CatalogUI.js b/js/app/views/CatalogUI.js index 113fa1f..03c0fcb 100644 --- a/js/app/views/CatalogUI.js +++ b/js/app/views/CatalogUI.js @@ -270,6 +270,7 @@ Ext.define('amdaUI.CatalogUI', { { xtype: 'rownumberer', width: 50, + minWidth: 50, renderer: function (value, metaData, record) { var msg = record.index + 1; if (record.get('isNew') || record.get('isModified')) { @@ -286,6 +287,7 @@ Ext.define('amdaUI.CatalogUI', { sortable: true, dataIndex: 'start', width: 120, + minWidth: 50, menuDisabled: false, editor: { xtype: 'datefield', @@ -302,6 +304,7 @@ Ext.define('amdaUI.CatalogUI', { sortable: true, dataIndex: 'stop', width: 120, + minWidth: 50, menuDisabled: false, editor: { xtype: 'datefield', @@ -317,6 +320,7 @@ Ext.define('amdaUI.CatalogUI', { sortable: true, dataIndex: 'durationHour', width: 120, + minWidth: 50, menuDisabled: false, hidden: true, id: amdaUI.CatalogUI.COL_TO_HIDE_DURATION + '1', @@ -336,6 +340,7 @@ Ext.define('amdaUI.CatalogUI', { sortable: true, dataIndex: 'durationMin', width: 120, + minWidth: 50, menuDisabled: false, hidden: false, id: amdaUI.CatalogUI.COL_TO_HIDE_DURATION + '2', @@ -355,6 +360,7 @@ Ext.define('amdaUI.CatalogUI', { sortable: true, dataIndex: 'durationSec', width: 120, + minWidth: 50, menuDisabled: false, hidden: true, id: amdaUI.CatalogUI.COL_TO_HIDE_DURATION + '3', @@ -378,7 +384,8 @@ Ext.define('amdaUI.CatalogUI', { text: obj.name, sortable: true, dataIndex: obj.id, - menuDisabled: false + menuDisabled: false, + minWidth: 50 }; switch (obj.type) { case 0: //double -- libgit2 0.21.2