From: arno Date: Thu, 14 Apr 2011 08:20:21 +0000 (+0200) Subject: fixe map resizing X-Git-Tag: v0.3.2~8 X-Git-Url: https://dev.renevier.net/?p=syj.git;a=commitdiff_plain;h=a73fb9125bf059e16ae583f82d67bcc59efb69b4 fixe map resizing --- diff --git a/public/js/syj.js b/public/js/syj.js index 0233634..ed68bcf 100644 --- a/public/js/syj.js +++ b/public/js/syj.js @@ -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(); -};