diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-03-14 12:36:03 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-03-14 12:36:03 +0000 |
commit | c9681f6bbc04659b9d6ed5eaa46b8c2edd704f9e (patch) | |
tree | 87eb258c1a1fe0c7c5371611eafa4d90b4029c3f /web/js/map-OpenLayers.js | |
parent | af8f5d1648b341d8b9ca4a323eb4a85c14378626 (diff) |
Move most mobile-related JS into resize() so that site keeps working on browser resize.
Diffstat (limited to 'web/js/map-OpenLayers.js')
-rw-r--r-- | web/js/map-OpenLayers.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js index 6ffcb5c1d..a7b7d6a14 100644 --- a/web/js/map-OpenLayers.js +++ b/web/js/map-OpenLayers.js @@ -210,6 +210,10 @@ $(function(){ displayProjection: new OpenLayers.Projection("EPSG:4326") }); + if ($('html').hasClass('mobile')) { + $('#fms_pan_zoom').css({ top: '2.75em !important' }); + } + fixmystreet.layer_options = OpenLayers.Util.extend({ zoomOffset: fixmystreet.zoomOffset, transitionEffect: 'resize', |