1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-28 14:29:07 +02:00

rebuild and only select visible dropdown items

This commit is contained in:
fat
2012-12-07 17:14:49 -05:00
parent 2526c3fdbe
commit 66b70016d0
5 changed files with 6 additions and 6 deletions

View File

@@ -59,7 +59,7 @@
, $href = /^#\w/.test(href) && $(href)
return ( $href
&& $href.length
&& [[ $href.position().top, href ]] ) || null
&& [[ $href.position().top + self.$scrollElement.scrollTop(), href ]] ) || null
})
.sort(function (a, b) { return a[0] - b[0] })
.each(function () {