From a73fb9125bf059e16ae583f82d67bcc59efb69b4 Mon Sep 17 00:00:00 2001 From: arno Date: Thu, 14 Apr 2011 10:20:21 +0200 Subject: [PATCH] fixe map resizing --- public/js/syj.js | 11 ----------- 1 file changed, 11 deletions(-) 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(); -}; -- 2.39.2