Permalink
Browse files

Resize on load.

This fixes a bug with Opera where the map size was empty.
  • Loading branch information...
1 parent cac36b1 commit c682b2a6144f18e9406654545d05957c3affd76c @mbostock mbostock committed Apr 8, 2011
Showing with 51 additions and 49 deletions.
  1. +1 −0 polymaps.js
  2. +49 −49 polymaps.min.js
  3. +1 −0 src/Map.js
View
@@ -685,6 +685,7 @@ resizer.remove = function(map) {
// Note: assumes single window (no frames, iframes, etc.)!
window.addEventListener("resize", resizer, false);
+window.addEventListener("load", resizer, false);
// See http://wiki.openstreetmap.org/wiki/Mercator
Oops, something went wrong.

0 comments on commit c682b2a

Please sign in to comment.