diff options
author | Marius Halden <marius.h@lden.org> | 2015-10-27 13:27:03 +0100 |
---|---|---|
committer | Marius Halden <marius.h@lden.org> | 2015-10-27 13:27:03 +0100 |
commit | 4fb5331abd2fa4c89ebeb89bc92a245fadd0aa19 (patch) | |
tree | 23632b448612e3845a6e8b1aed6490151395de2a /web/js/map-google.js | |
parent | e609613b5041a15491417eaa9ae129dd1e7531dd (diff) | |
parent | ac39951581a0eefe069c8a707bb89977227d0bce (diff) |
Merge tag 'v1.7' into fiksgatami-dev
Diffstat (limited to 'web/js/map-google.js')
-rw-r--r-- | web/js/map-google.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/web/js/map-google.js b/web/js/map-google.js index 8364b40df..0e7cd824e 100644 --- a/web/js/map-google.js +++ b/web/js/map-google.js @@ -192,10 +192,8 @@ function fms_map_initialize() { if (fixmystreet.state_map && fixmystreet.state_map == 'full') { // TODO Work better with window resizing, this is pretty 'set up' only at present - var $content = $('.content'), mb = $('#map_box'), - q = ( $content.offset().left - mb.offset().left + $content.width() ) / 2; - if (q < 0) { q = 0; } - // Need to try and fake the 'centre' being 75% from the left + var q = fixmystreet_midpoint(); + // Need to try and fake the 'centre' being 75% from the edge fixmystreet.map.panBy(-q, -25); } |