Tell OpenLayers when we have resized the map

This commit is contained in:
Tom Hughes 2012-01-02 17:10:06 +00:00
parent 3b20c87893
commit 6fbdf8cca3

View file

@ -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() {