[Dive4elements-commits] [PATCH 1 of 2] Map is now properly resized when hiding ThemePanel
Wald Commits
scm-commit at wald.intevation.org
Thu Nov 15 14:20:58 CET 2012
# HG changeset patch
# User Christian Lins <christian.lins at intevation.de>
# Date 1352985592 -3600
# Node ID 4c2c1d4cf777080fa056030a1b996a0e82709605
# Parent f8ed8114f415b0123c043931d7b1e3039530928f
Map is now properly resized when hiding ThemePanel.
diff -r f8ed8114f415 -r 4c2c1d4cf777 flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapOutputTab.java
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapOutputTab.java Wed Nov 14 23:48:49 2012 +0100
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapOutputTab.java Thu Nov 15 14:19:52 2012 +0100
@@ -181,7 +181,7 @@
int height = rootLayout.getHeight() -
controlPanel.getHeight() - 6;
int width = controlPanel.getWidth() -
- (themePanelCanvas.isVisible() ? themePanelCanvas.getWidth() + 4 : 0);
+ (themePanelCanvas.isVisible() ? themePanelCanvas.getWidth() + 4 : 2);
// Set size and position of Map
String w = String.valueOf(width) + "px";
@@ -189,6 +189,7 @@
GWT.log("width=" + w);
mapPanel.setSize(w, h);
+ mapPanel.getMap().updateSize();
if(themePanelCanvas.isVisible()) {
absPan.setWidgetPosition(mapPanel, themePanelCanvas.getWidth() + 2, 0);
}
More information about the Dive4elements-commits
mailing list