Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapPanel.java @ 4541:7b454c6e2bcb
MapPanel position and size now properly aligned (#568).
author | Christian Lins <christian.lins@intevation.de> |
---|---|
date | Thu, 15 Nov 2012 17:06:09 +0100 |
parents | 099d136b215b |
children | fac54b8470d4 |
comparison
equal
deleted
inserted
replaced
4532:5a2dba5be941 | 4541:7b454c6e2bcb |
---|---|
60 }); | 60 }); |
61 } | 61 } |
62 | 62 |
63 | 63 |
64 protected void doLayout() { | 64 protected void doLayout() { |
65 GWT.log("MapPanel.size: " + getWidth() + "x" + getHeight()); | 65 int width = getWidth(); |
66 int height = getHeight(); | |
67 GWT.log("MapPanel.size: " + width + "x" + height); | |
66 | 68 |
67 this.floodMapWidget.setWidth(getWidthAsString()); | 69 width -= 2; // minus black borders |
68 this.floodMapWidget.setHeight(getHeightAsString()); | 70 height -= toolbar.getHeight() + 4; |
71 | |
72 this.floodMapWidget.setWidth(Integer.toString(width)); | |
73 this.floodMapWidget.setHeight(Integer.toString(height)); | |
69 } | 74 } |
70 | 75 |
71 | 76 |
72 public FloodMap getFloodMap() { | 77 public FloodMap getFloodMap() { |
73 return floodMap; | 78 return floodMap; |