From 4210d375a59017795ae72f07be2c8d1fdcab257e Mon Sep 17 00:00:00 2001 From: Elena.Budnik Date: Fri, 8 Mar 2019 12:49:05 +0100 Subject: [PATCH] redmine 6828 - IntervalUI format --- js/app/views/IntervalUI.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/js/app/views/IntervalUI.js b/js/app/views/IntervalUI.js index 859ea34..57440ec 100644 --- a/js/app/views/IntervalUI.js +++ b/js/app/views/IntervalUI.js @@ -202,16 +202,18 @@ Ext.define('amdaUI.IntervalUI', { getDateField : function(fieldName,fieldText,fieldId,onChangeField) { return { - layout: {type: 'hbox', align: 'middle'}, + layout: {type: 'hbox', align: 'strech'}, items: [{ xtype: 'datefield', margin : '10 0 0 5', // (top, right, bottom, left). name: fieldName, + // flex : 1, // flex or width + width : 220, emptyText: 'YYYY/MM/DD hh:mm:ss', - tip: 'Date formated as YYYY/MM/DD hh:mm:ss', + tip: 'Date formatted as YYYY/MM/DD hh:mm:ss', format: 'Y/m/d H:i:s', - enforceMaxLength: true, - maxLength: 19, + enforceMaxLength: true, + maxLength: 19, fieldLabel: fieldText, labelAlign: 'left', labelWidth: 60, -- libgit2 0.21.2