# HG changeset patch # User Björn Ricks # Date 1350912304 -7200 # Node ID de795c13dcfb66914516e9ab245c88575ce517ae # Parent 1fa244f70ad52f7cb8d40dd435a1f7cc373ee30e Use static method from RiverInfoPanel to calculate the static width Also add some logging to be able to debug further layout issues while resizing the GaugePanel. diff -r 1fa244f70ad5 -r de795c13dcfb 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:23:00 2012 +0200 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/GaugePanel.java Mon Oct 22 15:25:04 2012 +0200 @@ -112,16 +112,19 @@ /* this height calculation is only an approximation and doesn't reflect * the real height of the the gaugetree. */ int height = getInnerContentHeight() - - (RiverInfoPanel.HEIGHT + - (2 * RiverInfoPanel.BORDER_WIDTH) + - (2 * RiverInfoPanel.PADDING) + - (2 * RiverInfoPanel.MARGIN)); + RiverInfoPanel.getStaticHeight(); if (height < 0) { height = 0; } + GWT.log("GaugePanel - onResize " + height); + gaugetree.setHeight("" + height + "px"); + + for (Canvas canvas : getMembers()) { + GWT.log("GaugePanel - member height " + canvas.getHeight()); + } }