aboutsummaryrefslogtreecommitdiffstats
path: root/web/js
diff options
context:
space:
mode:
authorJosh Angell <josh@supercooldesign.co.uk>2012-02-16 17:19:16 +0000
committerJosh Angell <josh@supercooldesign.co.uk>2012-02-16 17:19:16 +0000
commit7762384c342a3927c7d7497c9ce7c22dafdfc696 (patch)
tree5b1856dff6dbcc372a97117fe8b2ce72cddd493a /web/js
parent03c3c5c4bbc9b1e906db09882b1a9d685ad59455 (diff)
Bunch of layout-related bug fixes
Signed-off-by: Josh Angell <josh@supercooldesign.co.uk>
Diffstat (limited to 'web/js')
-rw-r--r--web/js/fixmystreet.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/js/fixmystreet.js b/web/js/fixmystreet.js
index 7967e3d7d..d88d66db4 100644
--- a/web/js/fixmystreet.js
+++ b/web/js/fixmystreet.js
@@ -70,7 +70,7 @@ function tabs(elem)
$(function(){
- if(Modernizr.mq('only screen and (max-width:48em)')) {
+ if(Modernizr.mq('only screen and (max-width:47em)')) {
$('html').addClass('mobile');
}
@@ -288,7 +288,7 @@ $(function(){
*/
$('.mobile').on('click', '#nav-link', function(e){
e.preventDefault();
- var foo = $('.wrapper').height() - $('main-nav').height();
+ var foo = $('.wrapper').height() - 500;
$('html, body').animate({scrollTop:foo}, 1000);
});
}); \ No newline at end of file