From: Tom Hughes Date: Mon, 2 Jan 2012 17:10:06 +0000 (+0000) Subject: Tell OpenLayers when we have resized the map X-Git-Tag: live~5948 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/6fbdf8cca357ce2bf254903f089b76a40b7ee857 Tell OpenLayers when we have resized the map --- diff --git a/app/views/site/_resize.html.erb b/app/views/site/_resize.html.erb index c88f50052..d018cedc9 100644 --- a/app/views/site/_resize.html.erb +++ b/app/views/site/_resize.html.erb @@ -29,6 +29,10 @@ <% end -%> $("#map").width($("#content").width() - sidebar_width - left_border - right_border); $("#map").height($("#content").height() - top_border - bottom_border); + + <% if params[:controller] == "site" and params[:action] == "index" -%> + map.updateSize(); + <% end -%> } function handleResize() {