Mercurial > dive4elements > river
changeset 4203:de795c13dcfb
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.
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Mon, 22 Oct 2012 15:25:04 +0200 |
parents | 1fa244f70ad5 |
children | 9f9843491ac4 |
files | flys-client/src/main/java/de/intevation/flys/client/client/ui/GaugePanel.java |
diffstat | 1 files changed, 7 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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()); + } }