diff options
author | Josh Angell <josh@supercooldesign.co.uk> | 2012-03-01 09:54:53 +0000 |
---|---|---|
committer | Josh Angell <josh@supercooldesign.co.uk> | 2012-03-01 09:54:53 +0000 |
commit | b0d7637376d8204b11f83eaac41b13fa14290072 (patch) | |
tree | b51ef38a891398765243c8999a29437249077de0 | |
parent | d06e85bdfe2b5262ad7db359f156d40719bc9877 (diff) | |
parent | 00115a2171a6ae6877a9ed668f84254db78574f3 (diff) |
Merge branch 'supercool' of ssh://github.com/mysociety/fixmystreet into supercool
-rw-r--r-- | web/cobrands/fixmystreet/fixmystreet.js | 15 |
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%'; |