From f3a1a0511e305bb6a6f4fc7dae7b322e86848898 Mon Sep 17 00:00:00 2001 From: Vitaly Litvak Date: Tue, 28 Apr 2015 01:04:39 +0300 Subject: [PATCH] For #156 - changed grid settings for notification type selector, adjusted height of 'global settings' dialog --- .../traccar/web/client/view/ApplicationSettingsDialog.ui.xml | 2 +- src/main/java/org/traccar/web/client/view/UserDialog.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/traccar/web/client/view/ApplicationSettingsDialog.ui.xml b/src/main/java/org/traccar/web/client/view/ApplicationSettingsDialog.ui.xml index 8af679e7..fcf0809f 100644 --- a/src/main/java/org/traccar/web/client/view/ApplicationSettingsDialog.ui.xml +++ b/src/main/java/org/traccar/web/client/view/ApplicationSettingsDialog.ui.xml @@ -15,7 +15,7 @@ - + diff --git a/src/main/java/org/traccar/web/client/view/UserDialog.java b/src/main/java/org/traccar/web/client/view/UserDialog.java index 3abb3953..251767bf 100644 --- a/src/main/java/org/traccar/web/client/view/UserDialog.java +++ b/src/main/java/org/traccar/web/client/view/UserDialog.java @@ -120,7 +120,8 @@ public String getValue(DeviceEventType object) { uiBinder.createAndBindUi(this); grid.setSelectionModel(selectionModel); - grid.getView().setAutoExpandColumn(nameCol); + grid.getView().setForceFit(true); + grid.getView().setAutoFill(true); for (DeviceEventType deviceEventType : user.getTransferNotificationEvents()) { grid.getSelectionModel().select(deviceEventType, true); }