Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorGodric <godric@0x3f.fr>2012-12-04 04:21:07 +0400
committerGodric <godric@0x3f.fr>2012-12-04 04:21:07 +0400
commit8b959cacbc26666c13fd0e893a3f563ac4f9d09e (patch)
tree3bbd8e9407a4d2e8850a7e57ded843f5855edf8e /js
parent3b3dd3ac3c7b69d02406ede69bffcc4ee8a1ed6b (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.js2
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 () {