[Dive4elements-commits] [PATCH 2 of 2] Merged

Wald Commits scm-commit at wald.intevation.org
Thu Nov 15 17:06:58 CET 2012


# HG changeset patch
# User Christian Lins <christian.lins at intevation.de>
# Date 1352995614 -3600
# Node ID 8e8cabaeab6a4f09fe53260123a2a9a2ec691ac0
# Parent  ba795aa13843f58443ae3a30e3ece0e95cb975d4
# Parent  7b454c6e2bcbbd209a16710de92f5b6bcbffe56e
Merged

diff -r ba795aa13843 -r 8e8cabaeab6a flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapPanel.java
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapPanel.java	Thu Nov 15 16:31:13 2012 +0100
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapPanel.java	Thu Nov 15 17:06:54 2012 +0100
@@ -62,10 +62,15 @@
 
 
     protected void doLayout() {
-        GWT.log("MapPanel.size: " + getWidth() + "x" + getHeight());
+        int width = getWidth();
+        int height = getHeight();
+        GWT.log("MapPanel.size: " + width + "x" + height);
 
-        this.floodMapWidget.setWidth(getWidthAsString());
-        this.floodMapWidget.setHeight(getHeightAsString());
+        width -= 2; // minus black borders
+        height -= toolbar.getHeight() + 4;
+
+        this.floodMapWidget.setWidth(Integer.toString(width));
+        this.floodMapWidget.setHeight(Integer.toString(height));
     }
 
 


More information about the Dive4elements-commits mailing list