diff options
| author | Jacob <[email protected]> | 2013-07-25 21:19:57 -0700 |
|---|---|---|
| committer | Jacob <[email protected]> | 2013-07-25 21:19:57 -0700 |
| commit | f1ddf7681cfe6d7c91c9523d44ee76c89c3674d6 (patch) | |
| tree | 06411b9adc46b01423d3d30c3a9231bec0ca1281 /js | |
| parent | 2a4a6fe0f003540360a3389d9faee677cf42aaa2 (diff) | |
| parent | 0a7253042998e764265f02b1ff053123d375c5bf (diff) | |
| download | bootstrap-f1ddf7681cfe6d7c91c9523d44ee76c89c3674d6.tar.xz bootstrap-f1ddf7681cfe6d7c91c9523d44ee76c89c3674d6.zip | |
Merge pull request #8419 from hollensteiner/3.0.0-wip
Replace position() with offset() in scrollspy.js
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 af74da17d..e958021ed 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 () { |
