[PATCH 3 of 7] Fixed columns in location/distance helper panels

Wald Commits scm-commit at wald.intevation.org
Wed Jun 18 14:29:18 CEST 2014


# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1403094346 -7200
# Node ID 48d8dba891f6d1ce886754616963853061017a03
# Parent  217ff570d83fe0b15d3f0fb81de10fda4f639f4d
Fixed columns in location/distance helper panels.

diff -r 217ff570d83f -r 48d8dba891f6 gwt-client/src/main/java/org/dive4elements/river/client/client/ui/LocationDistancePanel.java
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/LocationDistancePanel.java	Wed Jun 18 14:25:01 2014 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/LocationDistancePanel.java	Wed Jun 18 14:25:46 2014 +0200
@@ -250,7 +250,7 @@
 
         ListGridField addDistance = new ListGridField ("", "");
         addDistance.setType (ListGridFieldType.ICON);
-        addDistance.setWidth (20);
+        addDistance.setWidth (30);
         addDistance.addRecordClickHandler (new RecordClickHandler () {
             @Override
             public void onRecordClick (RecordClickEvent e) {
@@ -463,12 +463,12 @@
             }
         };
 
-        ListGridField addfrom = new ListGridField ("from", MESSAGES.from());
+        ListGridField addfrom = new ListGridField ("fromIcon", MESSAGES.from());
         addfrom.setType (ListGridFieldType.ICON);
         addfrom.setWidth (30);
         addfrom.setCellIcon(baseUrl + MESSAGES.markerGreen());
 
-        ListGridField addto2 = new ListGridField ("to", MESSAGES.to());
+        ListGridField addto2 = new ListGridField ("toIcon", MESSAGES.to());
         addto2.setType (ListGridFieldType.ICON);
         addto2.setWidth (30);
         addto2.setCellIcon(baseUrl + MESSAGES.markerRed());
diff -r 217ff570d83f -r 48d8dba891f6 gwt-client/src/main/java/org/dive4elements/river/client/client/ui/range/LocationsTable.java
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/range/LocationsTable.java	Wed Jun 18 14:25:01 2014 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/range/LocationsTable.java	Wed Jun 18 14:25:46 2014 +0200
@@ -44,12 +44,12 @@
         setEmptyMessage(MSG.empty_filter());
         setCanReorderFields(false);
 
-        ListGridField addfrom = new ListGridField ("from", MSG.from());
+        ListGridField addfrom = new ListGridField ("fromIcon", MSG.from());
         addfrom.setType(ListGridFieldType.ICON);
         addfrom.setWidth(30);
         addfrom.setCellIcon(baseUrl + MSG.markerGreen());
 
-        ListGridField addto = new ListGridField("to", MSG.to());
+        ListGridField addto = new ListGridField("toIcon", MSG.to());
         addto.setType(ListGridFieldType.ICON);
         addto.setWidth(30);
         addto.setCellIcon(baseUrl + MSG.markerRed());


More information about the Dive4Elements-commits mailing list