mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-03-21 15:00:23 +00:00
Update js/bootstrap-scrollspy.js
Fix for Bootstrap issue #6013 "scrollSpy - offset calculation" https://github.com/twitter/bootstrap/issues/6013
This commit is contained in:
parent
3b3dd3ac3c
commit
8b959cacbc
1 changed files with 1 additions and 1 deletions
2
js/bootstrap-scrollspy.js
vendored
2
js/bootstrap-scrollspy.js
vendored
|
|
@ -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 () {
|
||||
|
|
|
|||
Loading…
Reference in a new issue