1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-17 21:49:09 +01:00

Merge pull request #8419 from hollensteiner/3.0.0-wip

Replace position() with offset() in scrollspy.js
This commit is contained in:
Jacob 2013-07-25 21:19:57 -07:00
commit f1ddf7681c

View File

@ -60,7 +60,7 @@
return ($href
&& $href.length
&& [[ $href.position().top + (!$.isWindow(self.$scrollElement.get(0)) && self.$scrollElement.scrollTop()), href ]]) || null
&& [[ $href.offset().top + (!$.isWindow(self.$scrollElement.get(0)) && self.$scrollElement.scrollTop()), href ]]) || null
})
.sort(function (a, b) { return a[0] - b[0] })
.each(function () {