aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--web/cobrands/fixmystreet/fixmystreet.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js
index 3f6b5c721..a9341d949 100644
--- a/web/cobrands/fixmystreet/fixmystreet.js
+++ b/web/cobrands/fixmystreet/fixmystreet.js
@@ -303,8 +303,8 @@ $(function(){
*/
$('.mobile').on('click', '#nav-link', function(e){
e.preventDefault();
- var foo = $('.wrapper').height() - 500;
- $('html, body').animate({scrollTop:foo}, 1000);
+ var offset = $('#main-nav').offset().top;
+ $('html, body').animate({scrollTop:offset}, 1000);
});