Commit 2526c3fd authored by billy gates's avatar billy gates
Browse files

Merge pull request #6118 from godric7/master

scrollSpy - add parent scrollTop to offset calculation
parents a7eb9c29 8b959cac
No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
......@@ -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 () {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment