diff options
Diffstat (limited to 'web/app/view/Statistics.js')
-rw-r--r-- | web/app/view/Statistics.js | 55 |
1 files changed, 28 insertions, 27 deletions
diff --git a/web/app/view/Statistics.js b/web/app/view/Statistics.js index 137850ed..7232951a 100644 --- a/web/app/view/Statistics.js +++ b/web/app/view/Statistics.js @@ -48,31 +48,32 @@ Ext.define('Traccar.view.Statistics', { handler: 'onShowClick' }], - columns: [{ - text: Strings.statisticsCaptureTime, - dataIndex: 'captureTime', - flex: 1, - xtype: 'datecolumn', - renderer: Traccar.AttributeFormatter.defaultFormatter() - }, { - text: Strings.statisticsActiveUsers, - dataIndex: 'activeUsers', - flex: 1 - }, { - text: Strings.statisticsActiveDevices, - dataIndex: 'activeDevices', - flex: 1 - }, { - text: Strings.statisticsRequests, - dataIndex: 'requests', - flex: 1 - }, { - text: Strings.statisticsMessagesReceived, - dataIndex: 'messagesReceived', - flex: 1 - }, { - text: Strings.statisticsMessagesStored, - dataIndex: 'messagesStored', - flex: 1 - }] + forceFit: true, + + columns: { + defaults: { + minWidth: Traccar.Style.columnWidthNormal + }, + items: [{ + text: Strings.statisticsCaptureTime, + dataIndex: 'captureTime', + xtype: 'datecolumn', + renderer: Traccar.AttributeFormatter.defaultFormatter() + }, { + text: Strings.statisticsActiveUsers, + dataIndex: 'activeUsers' + }, { + text: Strings.statisticsActiveDevices, + dataIndex: 'activeDevices' + }, { + text: Strings.statisticsRequests, + dataIndex: 'requests' + }, { + text: Strings.statisticsMessagesReceived, + dataIndex: 'messagesReceived' + }, { + text: Strings.statisticsMessagesStored, + dataIndex: 'messagesStored' + }] + } }); |