Resize the map div when the page load is complete (via onload) in case the
[rails.git] / app / views / site / edit.rhtml
index da2711c78728651d2caca98f460d7107f4fcf468..d2657d26f141627c1f4b9274f9869fd86820d993 100644 (file)
 
     resizeMap();
   }
-
-  window.onresize = handleResize;
   
   handleResize();
+
+  window.onload = handleResize;
+  window.onresize = handleResize;
 </script>
 <% end %>