]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Replace position with offset 8419/head
authorClausH <claushollensteiner@gmail.com>
Mon, 8 Jul 2013 10:02:31 +0000 (12:02 +0200)
committerClausH <claushollensteiner@gmail.com>
Mon, 8 Jul 2013 10:02:31 +0000 (12:02 +0200)
js/scrollspy.js

index 8d1e72a874cdc90ddafa6b98f0373293049ad81c..074b4d5b600b04066d5edde1a3ad6cb875e5970f 100644 (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 () {