aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--web/cobrands/fixmystreet/fixmystreet.js15
1 files changed, 8 insertions, 7 deletions
diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js
index 3507dc231..ba684610c 100644
--- a/web/cobrands/fixmystreet/fixmystreet.js
+++ b/web/cobrands/fixmystreet/fixmystreet.js
@@ -80,13 +80,14 @@ $(function(){
//add mobile class if small screen
if(Modernizr.mq('only screen and (max-width:48em)')) {
$('html').addClass('mobile');
-// XXX Make map full screen here?
-// if (fixmystreet.page == 'around') {
-// $('#map_box').css({
-// height: $(window).height(),
-// margin: 0
-// });
-// }
+ if (fixmystreet.page == 'around') {
+ // Immediately go full screen map if on around page
+ $('#site-header').hide();
+ $('#map_box').prependTo('.wrapper').css({
+ height: $(window).height(),
+ margin: 0
+ });
+ }
} else {
// Make map full screen on non-mobile sizes.
var map_pos = 'fixed', map_height = '100%';