Permalink
Browse files

expander-hook: fix tolerance

  • Loading branch information...
mmckegg committed Dec 15, 2017
1 parent fc4bdfb commit cc7e6b63c111925ebdeda7d37bfcc7ef98348e76
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/expander-hook.js
View
@@ -19,7 +19,7 @@ function expander (needsExpand, element) {
function handleEvent (ev) {
var { needsExpand, element } = this
if (!needsExpand()) {
if (element.firstElementChild && element.firstElementChild.clientHeight > element.clientHeight) {
if (element.firstElementChild.clientHeight + 5 > element.clientHeight) {
needsExpand.set(true)
}
}

0 comments on commit cc7e6b6

Please sign in to comment.