diff flys-client/src/main/java/de/intevation/flys/client/client/ui/GaugePanel.java @ 4205:0dd8963cec9c

Set also the width of the GaugeTree when resizing the GaugePanel GWT is no longer able to calculate and set the correct width of the GaugeTree since the GaugeTree is added via a Canvas wrapper. Therefore set the width manually when resizing the GaugeTree.
author Björn Ricks <bjoern.ricks@intevation.de>
date Mon, 22 Oct 2012 15:33:16 +0200
parents 9f9843491ac4
children 207de712d79d
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/GaugePanel.java	Mon Oct 22 15:29:56 2012 +0200
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/GaugePanel.java	Mon Oct 22 15:33:16 2012 +0200
@@ -125,6 +125,7 @@
          * the real height of the the gaugetree. */
         int height = getInnerContentHeight() -
             RiverInfoPanel.getStaticHeight();
+        int width = getInnerContentWidth();
 
         if (height < 0) {
             height = 0;
@@ -133,6 +134,7 @@
         GWT.log("GaugePanel - onResize " + height);
 
         gaugetree.setHeight("" + height + "px");
+        gaugetree.setWidth("" + width + "px");
 
         for (Canvas canvas : getMembers()) {
             GWT.log("GaugePanel - member height " + canvas.getHeight());

http://dive4elements.wald.intevation.org