Scrollspy fix for hidden elements

This commit is contained in:
Arnold Daniels
2013-10-31 01:57:10 +01:00
parent 684246f88d
commit 830c28fa97

View File

@@ -62,6 +62,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] })