From: ClausH Date: Mon, 8 Jul 2013 10:02:31 +0000 (+0200) Subject: Replace position with offset X-Git-Tag: v3.0.0-rc1~58^2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a7253042998e764265f02b1ff053123d375c5bf;p=thirdparty%2Fbootstrap.git Replace position with offset --- 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 () {