changeset 3827:ed978af1f089

Improve the handling of the GaugePanel in the ParameterList flys-client/trunk@5522 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Bjoern Ricks <bjoern.ricks@intevation.de>
date Wed, 19 Sep 2012 12:43:43 +0000
parents 7a34af684ed4
children 9cbc8311e820
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java
diffstat 2 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Wed Sep 19 12:41:48 2012 +0000
+++ b/flys-client/ChangeLog	Wed Sep 19 12:43:43 2012 +0000
@@ -1,3 +1,9 @@
+2012-09-19	Björn Ricks	<bjoern.ricks@intevation.de>
+
+	* src/main/java/de/intevation/flys/client/client/ui/ParameterList.java:
+	  Improve handling of the GaugePanel and don't delete members of the
+	  GaugePanel.
+
 2012-09-19	Björn Ricks	<bjoern.ricks@intevation.de>
 
 	* src/main/java/de/intevation/flys/client/server/GaugeOverviewInfoServiceImpl.java,
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java	Wed Sep 19 12:41:48 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java	Wed Sep 19 12:43:43 2012 +0000
@@ -224,7 +224,7 @@
             }
         };
         gaugePanel.setWidth100();
-        gaugePanel.setHeight("20%");
+        gaugePanel.setHeight100();
 
         // This canvas is used to render helper widgets.
         final SectionStackSection helperSection = new SectionStackSection();
@@ -701,11 +701,6 @@
             helperPanel.removeMembers(c);
         }
 
-        c = gaugePanel.getMembers();
-        if (c != null && c.length > 0) {
-            gaugePanel.removeMembers(c);
-        }
-
         Artifact art             = event.getNewValue();
         ArtifactDescription desc = art.getArtifactDescription();
 
@@ -749,7 +744,6 @@
         }
         if (art instanceof WINFOArtifact) {
             renderGaugeInfo(desc.getRiver());
-            gaugePanel.show();
         }
 
         addOldDatas(

http://dive4elements.wald.intevation.org