Skip to content

Commit

Permalink
For #156 - changed grid settings for notification type selector, adju…
Browse files Browse the repository at this point in the history
…sted height of 'global settings' dialog
  • Loading branch information
vitalidze committed Apr 27, 2015
1 parent e16a11f commit f3a1a05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<ui:with field='i18n' type='org.traccar.web.client.i18n.Messages' />

<gxt:Window ui:field="window" pixelSize="340, 210" modal="true" headingText="{i18n.globalSettings}" focusWidget="{saveButton}">
<gxt:Window ui:field="window" pixelSize="340, 220" modal="true" headingText="{i18n.globalSettings}" focusWidget="{saveButton}">
<container:VerticalLayoutContainer>
<container:child layoutData="{verticalLayoutData}">
<form:FieldLabel text="{i18n.registration}" labelWidth="210">
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/traccar/web/client/view/UserDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit f3a1a05

Please sign in to comment.