Mercurial > dive4elements > river
changeset 4542:8e8cabaeab6a
Merged
author | Christian Lins <christian.lins@intevation.de> |
---|---|
date | Thu, 15 Nov 2012 17:06:54 +0100 |
parents | ba795aa13843 (current diff) 7b454c6e2bcb (diff) |
children | e357716cf346 |
files | |
diffstat | 1 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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)); }