X-Git-Url: https://dev.renevier.net/?p=syj.git;a=blobdiff_plain;f=public%2Fjs%2Fsyj.js;h=ed68bcf7a43b383751b66bfee28fee785079075f;hp=02336343d9d781d8f6bacb808b4855ea8180b413;hb=a73fb9125bf059e16ae583f82d67bcc59efb69b4;hpb=4022a532856c006efc57fbd8830bde4607c0114d 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(); -};