Skip to content

Commit

Permalink
Update js/bootstrap-scrollspy.js
Browse files Browse the repository at this point in the history
Fix for Bootstrap issue twbs#6013 "scrollSpy - offset calculation"
twbs#6013
  • Loading branch information
godric7 committed Dec 4, 2012
1 parent 3b3dd3a commit 8b959ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/bootstrap-scrollspy.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
, $href = /^#\w/.test(href) && $(href)
return ( $href
&& $href.length
&& [[ $href.position().top, href ]] ) || null
&& [[ $href.position().top + self.$scrollElement.scrollTop(), href ]] ) || null
})
.sort(function (a, b) { return a[0] - b[0] })
.each(function () {
Expand Down

0 comments on commit 8b959ca

Please sign in to comment.