X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3b20c8789395154df54d6500debd7ce821cf143e..6fbdf8cca357ce2bf254903f089b76a40b7ee857:/app/views/site/_resize.html.erb 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() {