diff options
author | Godric <godric@0x3f.fr> | 2012-12-04 04:21:07 +0400 |
---|---|---|
committer | Godric <godric@0x3f.fr> | 2012-12-04 04:21:07 +0400 |
commit | 8b959cacbc26666c13fd0e893a3f563ac4f9d09e (patch) | |
tree | 3bbd8e9407a4d2e8850a7e57ded843f5855edf8e /js | |
parent | 3b3dd3ac3c7b69d02406ede69bffcc4ee8a1ed6b (diff) |
Update js/bootstrap-scrollspy.js
Fix for Bootstrap issue #6013 "scrollSpy - offset calculation"
https://github.com/twitter/bootstrap/issues/6013
Diffstat (limited to 'js')
-rw-r--r-- | js/bootstrap-scrollspy.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/bootstrap-scrollspy.js b/js/bootstrap-scrollspy.js index 3ffda2ebe7..ace6b87034 100644 --- a/js/bootstrap-scrollspy.js +++ b/js/bootstrap-scrollspy.js @@ -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 () { |