aboutsummaryrefslogtreecommitdiffstats
path: root/web/js
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2013-10-25 14:33:55 +0100
committerMatthew Somerville <matthew@mysociety.org>2013-10-25 18:45:37 +0100
commitefa9988fc9f989e18f28f8aa1c02fb5122d1277a (patch)
tree265bc13f9eb11771d395fb62337e0565c2bd6adb /web/js
parent5b1520f738a362b5c6a0def5b5d322a728df3951 (diff)
Tidy up panzoom bar placement.
Diffstat (limited to 'web/js')
-rw-r--r--web/js/map-OpenLayers.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js
index a69b22799..f7a46ee68 100644
--- a/web/js/map-OpenLayers.js
+++ b/web/js/map-OpenLayers.js
@@ -273,8 +273,13 @@ $(function(){
}, fixmystreet.map_options)
);
- if ($('html').hasClass('mobile') && fixmystreet.page == 'around') {
- $('#fms_pan_zoom').css({ top: '2.75em !important' });
+ // Need to do this here, after the map is created
+ if ($('html').hasClass('mobile')) {
+ if (fixmystreet.page == 'around') {
+ $('#fms_pan_zoom').css({ top: '2.75em' });
+ }
+ } else {
+ $('#fms_pan_zoom').css({ top: '4.75em' });
}
// Set it up our way