# HG changeset patch # User Björn Ricks # Date 1350912796 -7200 # Node ID 0dd8963cec9c6dca8f9c9720e40162950d69017c # Parent 9f9843491ac42fcd52b6c1f5aa22fc168b58521c 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. diff -r 9f9843491ac4 -r 0dd8963cec9c flys-client/src/main/java/de/intevation/flys/client/client/ui/GaugePanel.java --- 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());