From 6fbdf8cca357ce2bf254903f089b76a40b7ee857 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 2 Jan 2012 17:10:06 +0000 Subject: [PATCH] Tell OpenLayers when we have resized the map --- app/views/site/_resize.html.erb | 4 ++++ 1 file changed, 4 insertions(+) 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() { -- 2.43.2