aboutsummaryrefslogtreecommitdiffstats
path: root/web/js
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-03-01 14:44:51 +0000
committerMatthew Somerville <matthew@mysociety.org>2012-03-01 14:44:51 +0000
commitf38c37216efd158f528f52867b3fd52f556b70d0 (patch)
treee9d30ddd846a80682be848c7a2785d3c6835d69d /web/js
parent5eddd423bcf5c17a0a9e6740cfec979a1232b558 (diff)
parentdc8017ed922114406559716466349374206c37f1 (diff)
Merge remote branch 'github/supercool' into supercool
Diffstat (limited to 'web/js')
-rw-r--r--web/js/map-OpenLayers.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js
index 7b0cc936b..87400c9d8 100644
--- a/web/js/map-OpenLayers.js
+++ b/web/js/map-OpenLayers.js
@@ -460,6 +460,9 @@ OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, {
// mobile user clicks 'ok' on map
$('#mob_ok').on('click', function(e){
e.preventDefault();
+ //scroll the height of the map box instead of the offset
+ //of the #side-form or whatever as we will probably want
+ //to do this on other pages where #side-form might not be
var height = $('#map_box').height();
$('html, body').animate({scrollTop:height}, 1000);
});