0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +01:00

Merge pull request #11203 from jasny/patch-1

Scrollspy acting up when targets are hidden
This commit is contained in:
Jacob 2013-12-28 22:06:26 -08:00
commit ea40e7999d

View File

@ -51,6 +51,7 @@
return ($href
&& $href.length
&& $href.is(':visible')
&& [[ $href[offsetMethod]().top + (!$.isWindow(self.$scrollElement.get(0)) && self.$scrollElement.scrollTop()), href ]]) || null
})
.sort(function (a, b) { return a[0] - b[0] })