Resize WorldMap to widget canvas

This commit is contained in:
Daniel Preussker
2015-11-04 13:59:27 +00:00
parent 32cdf4fc1a
commit 2bd13d436f

View File

@ -152,6 +152,7 @@ marker.bindPopup(title);
$temp_output .= 'map.addLayer(markers); $temp_output .= 'map.addLayer(markers);
map.scrollWheelZoom.disable(); map.scrollWheelZoom.disable();
$(document).ready(function(){ $(document).ready(function(){
$("#leaflet-map").css("height",($("#leaflet-map").parent().innerHeight()-55) + "px");
$("#leaflet-map").on("click", function(event) { $("#leaflet-map").on("click", function(event) {
map.scrollWheelZoom.enable(); map.scrollWheelZoom.enable();
}); });