From 0a7253042998e764265f02b1ff053123d375c5bf Mon Sep 17 00:00:00 2001 From: ClausH Date: Mon, 8 Jul 2013 12:02:31 +0200 Subject: [PATCH] Replace position with offset --- js/scrollspy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/scrollspy.js b/js/scrollspy.js index 8d1e72a874..074b4d5b60 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 () {