1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

Debug: Finderから検索して結果が何もなくなってからFinder自体が働かなくなる

This commit is contained in:
Rokt33r
2015-07-29 22:41:17 +09:00
parent 49057810fb
commit 90c2ff7480

View File

@@ -13,6 +13,10 @@ module.exports = React.createClass({
var el = React.findDOMNode(this)
var li = el.querySelectorAll('li')[index]
if (li == null) {
return
}
var overflowBelow = el.clientHeight + el.scrollTop < li.offsetTop + li.clientHeight
if (overflowBelow) {
el.scrollTop = li.offsetTop + li.clientHeight - el.clientHeight