aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/State.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view/State.js')
-rw-r--r--web/app/view/State.js33
1 files changed, 19 insertions, 14 deletions
diff --git a/web/app/view/State.js b/web/app/view/State.js
index 67cd0753..3356fd72 100644
--- a/web/app/view/State.js
+++ b/web/app/view/State.js
@@ -49,19 +49,24 @@ Ext.define('Traccar.view.State', {
selectionchange: 'onSelectionChange'
},
- columns: [{
- text: Strings.stateName,
- dataIndex: 'name',
- flex: 1
- }, {
- text: Strings.stateValue,
- dataIndex: 'value',
- flex: 1,
- renderer: function (value, metaData, record) {
- if (record.get('attribute') === 'alarm') {
- metaData.tdCls = 'view-color-red';
+ forceFit: true,
+
+ columns: {
+ defaults: {
+ minWidth: Traccar.Style.columnWidthNormal
+ },
+ items: [{
+ text: Strings.stateName,
+ dataIndex: 'name'
+ }, {
+ text: Strings.stateValue,
+ dataIndex: 'value',
+ renderer: function (value, metaData, record) {
+ if (record.get('attribute') === 'alarm') {
+ metaData.tdCls = 'view-color-red';
+ }
+ return value;
}
- return value;
- }
- }]
+ }]
+ }
});