diff options
author | Josh Angell <josh@supercooldesign.co.uk> | 2012-03-01 16:23:32 +0000 |
---|---|---|
committer | Josh Angell <josh@supercooldesign.co.uk> | 2012-03-01 16:23:32 +0000 |
commit | 008a592f0a599f0af7ccc1358e3c921e836587bf (patch) | |
tree | 28e8b0612b40dba5954fe6c898fb53544d9a5280 | |
parent | aed77780b3b363512fa0effd36e0c60d62397fac (diff) |
Pad top of rap-notes to window height to account for the map going full=screen over the top
Signed-off-by: Josh Angell <josh@supercooldesign.co.uk>
-rw-r--r-- | web/cobrands/fixmystreet/fixmystreet.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js index c8422ac31..af8ad2cff 100644 --- a/web/cobrands/fixmystreet/fixmystreet.js +++ b/web/cobrands/fixmystreet/fixmystreet.js @@ -271,6 +271,9 @@ $(function(){ }else{ //if not, move them and show, hiding .content $('.mobile .content').after('<div class="content rap-notes"></div>').hide(); + $('.rap-notes').css({ + paddingTop: $(window).height() + }); $('#report-a-problem-sidebar').appendTo('.rap-notes').show().after('<a href="#" class="rap-notes-close button-left">BACK</a>'); } $('html, body').scrollTop($('#report-a-problem-sidebar').offset().top); |