From 2bd13d436f91ba34e86155fbca18871ff3338812 Mon Sep 17 00:00:00 2001 From: Daniel Preussker Date: Wed, 4 Nov 2015 13:59:27 +0000 Subject: [PATCH] Resize WorldMap to widget canvas --- html/includes/common/worldmap.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/html/includes/common/worldmap.inc.php b/html/includes/common/worldmap.inc.php index bf9e6f36e1..bb6b48e010 100644 --- a/html/includes/common/worldmap.inc.php +++ b/html/includes/common/worldmap.inc.php @@ -152,6 +152,7 @@ marker.bindPopup(title); $temp_output .= 'map.addLayer(markers); map.scrollWheelZoom.disable(); $(document).ready(function(){ + $("#leaflet-map").css("height",($("#leaflet-map").parent().innerHeight()-55) + "px"); $("#leaflet-map").on("click", function(event) { map.scrollWheelZoom.enable(); });