diff options
author | fat <jacobthornton@gmail.com> | 2012-12-08 02:14:49 +0400 |
---|---|---|
committer | fat <jacobthornton@gmail.com> | 2012-12-08 02:14:49 +0400 |
commit | 66b70016d0f083098c32ad051173e6f52a6b2084 (patch) | |
tree | e1db0c76b4f685d03b2c3876d543fc5266fd5a59 /docs/assets/js/bootstrap-scrollspy.js | |
parent | 2526c3fdbeb67732400b5cd5fce8d64de1eeee1a (diff) |
rebuild and only select visible dropdown items
Diffstat (limited to 'docs/assets/js/bootstrap-scrollspy.js')
-rw-r--r-- | docs/assets/js/bootstrap-scrollspy.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/assets/js/bootstrap-scrollspy.js b/docs/assets/js/bootstrap-scrollspy.js index fd82872c5c..07a5c3a584 100644 --- a/docs/assets/js/bootstrap-scrollspy.js +++ b/docs/assets/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 () { |