diff flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java @ 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 4e33aa341e51
children 60911c8422b7
line wrap: on
line diff
--- 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