X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6e508a7b70fbe65d9229b421cc6d5111bb00f9c1..52e5fa6ad78f375cec5a207a123a4aa3939c8ddf:/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() {