]> dev.renevier.net Git - syj.git/blobdiff - public/js/syj.js
fixe map resizing
[syj.git] / public / js / syj.js
index 02336343d9d781d8f6bacb808b4855ea8180b413..ed68bcf7a43b383751b66bfee28fee785079075f 100644 (file)
@@ -512,13 +512,6 @@ var SYJView = {
         } else {
             this.map.setCenter(center, zoom);
         }
-        this.resizeMap();
-    },
-
-    resizeMap: function() {
-        var map = $('map');
-        map.style.width = map.offsetWidth.toString() + 'px';
-        map.style.height = map.offsetHeight.toString() + 'px';
     },
 
     observer: function(evt) {
@@ -1355,7 +1348,3 @@ window.onbeforeunload = function() {
         return undefined;
     }
 };
-
-window.onresize = function() {
-    SYJView.resizeMap();
-};