comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/map/FloodMap.java @ 4402:c84630d544a1

Get rid of HorizontalLayout in MapOutputTab and use manual resizing. The OpenLayers Map widget is now resized and positioned manually by a ResizeHandler method. The automatic HorizontalLayout was obviously broken in combination with the OpenLayers widget. This should fix various layout issues with the OpenLayers Map.
author Christian Lins <christian.lins@intevation.de>
date Mon, 05 Nov 2012 15:17:58 +0100
parents 6d749af6a9c2
children 099d136b215b
comparison
equal deleted inserted replaced
4401:6dad08f54369 4402:c84630d544a1
32 protected Vector barrierLayer; 32 protected Vector barrierLayer;
33 protected String srid; 33 protected String srid;
34 protected Bounds maxExtent; 34 protected Bounds maxExtent;
35 protected ScaleLine scaleLine; 35 protected ScaleLine scaleLine;
36 36
37 public FloodMap(String srid, Bounds maxExtent) { 37 public FloodMap(String srid, Bounds maxExtent, String width, String height) {
38 this.srid = srid; 38 this.srid = srid;
39 this.maxExtent = maxExtent; 39 this.maxExtent = maxExtent;
40 recreateWidget("100%", "99px"); 40 recreateWidget(width, height);
41 getBarrierLayer(); 41 getBarrierLayer();
42 } 42 }
43 43
44 44
45 public void recreateWidget(String width, String height) { 45 public void recreateWidget(String width, String height) {

http://dive4elements.wald.intevation.org