Permalink
Browse files

fix small nav bug

1 parent 4678d43 commit 1874c755f778b2c482c2937efd3ce96dc78301e7 @lukeapage lukeapage committed Oct 26, 2014
Showing with 3 additions and 4 deletions.
  1. +3 −4 assets/public/js/application.js
@@ -23,11 +23,10 @@
var $window = $(window)
var $body = $(document.body)
- //var navHeight = $('.navbar').outerHeight(true) + 10
-
$body.scrollspy({
- target: '.sidebar'
- //offset: navHeight
+ target: '.sidebar',
+ offset: 20 // required to select the right thing. if this is smaller then you are at the top of one section
+ // but the next section is highlighted
});
$window.on('load', function () {

0 comments on commit 1874c75

Please sign in to comment.