aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/Users.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-11-08 12:04:28 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-11-08 12:04:28 +1300
commit11c8c039cc8c5a1948281f410bdb440d5a9f1608 (patch)
treec10465b8dc779fbc24da7e0038d555bf16d9b23e /web/app/view/Users.js
parent0c68417e4a15051240cd724bb5f12fe0fc39c1de (diff)
downloadtrackermap-web-11c8c039cc8c5a1948281f410bdb440d5a9f1608.tar.gz
trackermap-web-11c8c039cc8c5a1948281f410bdb440d5a9f1608.tar.bz2
trackermap-web-11c8c039cc8c5a1948281f410bdb440d5a9f1608.zip
Specify min width for columns
Diffstat (limited to 'web/app/view/Users.js')
-rw-r--r--web/app/view/Users.js30
1 files changed, 17 insertions, 13 deletions
diff --git a/web/app/view/Users.js b/web/app/view/Users.js
index 28581c59..f4b27337 100644
--- a/web/app/view/Users.js
+++ b/web/app/view/Users.js
@@ -66,17 +66,21 @@ Ext.define('Traccar.view.Users', {
selectionchange: 'onSelectionChange'
},
- columns: [{
- text: Strings.sharedName,
- dataIndex: 'name',
- flex: 1
- }, {
- text: Strings.userEmail,
- dataIndex: 'email',
- flex: 1
- }, {
- text: Strings.userAdmin,
- dataIndex: 'admin',
- flex: 1
- }]
+ forceFit: true,
+
+ columns: {
+ defaults: {
+ minWidth: Traccar.Style.columnWidthNormal
+ },
+ items: [{
+ text: Strings.sharedName,
+ dataIndex: 'name'
+ }, {
+ text: Strings.userEmail,
+ dataIndex: 'email'
+ }, {
+ text: Strings.userAdmin,
+ dataIndex: 'admin'
+ }]
+ }
});