diff options
| author | ClausH <[email protected]> | 2013-07-08 12:02:31 +0200 |
|---|---|---|
| committer | ClausH <[email protected]> | 2013-07-08 12:02:31 +0200 |
| commit | 0a7253042998e764265f02b1ff053123d375c5bf (patch) | |
| tree | 7a57a63e4961edb54e3d00a389c223fe14e788a8 /js | |
| parent | 084291aac7e8873ce975a4b547a9de6ac4630473 (diff) | |
| download | bootstrap-0a7253042998e764265f02b1ff053123d375c5bf.tar.xz bootstrap-0a7253042998e764265f02b1ff053123d375c5bf.zip | |
Replace position with offset
Diffstat (limited to 'js')
| -rw-r--r-- | js/scrollspy.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/scrollspy.js b/js/scrollspy.js index 8d1e72a87..074b4d5b6 100644 --- a/js/scrollspy.js +++ b/js/scrollspy.js @@ -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 () { |
