changeset 572:830e4720caad

Avoid GWT throwing warnings if no 'old' items exist for the parameter list. flys-client/trunk@2122 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 15 Jun 2011 09:01:22 +0000
parents 6ebe845a9d37
children 756bd8f0b97c
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Wed Jun 15 08:28:54 2011 +0000
+++ b/flys-client/ChangeLog	Wed Jun 15 09:01:22 2011 +0000
@@ -1,3 +1,9 @@
+2011-06-15  Ingo Weinzierl <ingo@intevation.de>
+
+	* src/main/java/de/intevation/flys/client/client/ui/ParameterList.java:
+	  Set height of the parameter panel that shows the "old" values to "1" if
+	  no "old" value is existing. This avoids GWT throwing warning messages.
+
 2011-06-15  Ingo Weinzierl <ingo@intevation.de>
 
 	  flys/issue117 (W-INFO: Wasserspiegellagenberechnung / Q-Eingabe)
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java	Wed Jun 15 08:28:54 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java	Wed Jun 15 09:01:22 2011 +0000
@@ -147,7 +147,7 @@
         VLayout left = new VLayout();
 
         if (old == null || old.size() == 0) {
-            oldItems.setHeight(0);
+            oldItems.setHeight(1);
         }
 
         oldItems.setMembersMargin(10);

http://dive4elements.wald.intevation.org