changeset 3521:ffbdd093da74

Fixed size for GetFeatureInfoWindow. flys-client/trunk@5307 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Christian Lins <christian.lins@intevation.de>
date Thu, 30 Aug 2012 08:59:41 +0000
parents 0b576ca67cd5
children 6eeacd0bbe26
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/WspDatacagePanel.java flys-client/src/main/java/de/intevation/flys/client/client/ui/map/GetFeatureInfoWindow.java
diffstat 3 files changed, 11 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Wed Aug 29 16:09:39 2012 +0000
+++ b/flys-client/ChangeLog	Thu Aug 30 08:59:41 2012 +0000
@@ -1,3 +1,11 @@
+2012-08-30	Christian Lins	<christian.lins@intevation.de>
+
+	* src/main/java/de/intevation/flys/client/client/ui/map/GetFeatureInfoWindow.java:
+	  Workaround for #775 (manually set window size to 500x500 pixels)
+
+	* src/main/java/de/intevation/flys/client/client/ui/WspDatacagePanel.java:
+	  Prevent NPE
+
 2012-08-29	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
 
 	* src/main/java/de/intevation/flys/client/client/ui/chart/ChartPropertiesEditor.java,
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/WspDatacagePanel.java	Wed Aug 29 16:09:39 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/WspDatacagePanel.java	Thu Aug 30 08:59:41 2012 +0000
@@ -108,7 +108,7 @@
         ToLoad toLoad = widget.getSelection();
         List<Recommendation> recoms = toLoad.toRecommendations();
 
-        return recoms.get(0);
+        return recoms.size() > 0 ? recoms.get(0) : null;
     }
 
 
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/map/GetFeatureInfoWindow.java	Wed Aug 29 16:09:39 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/map/GetFeatureInfoWindow.java	Thu Aug 30 08:59:41 2012 +0000
@@ -48,8 +48,8 @@
 
         addItem(root);
 
-        setWidth(400);
-        setHeight(50 + rows * ROW_HEIGHT);
+        setWidth(500);
+        setHeight(500); // + rows * ROW_HEIGHT);
         setTitle(MSG.getFeatureInfoWindowTitle());
 
         setIsModal(true);

http://dive4elements.wald.intevation.org