Commit cc7e6b63c111925ebdeda7d37bfcc7ef98348e76
expander-hook: fix tolerance
Matt McKegg committed on 12/15/2017, 11:31:49 PMParent: fc4bdfbe7e94b2507aba1991405f77aa19c43e3c
Files changed
lib/expander-hook.js | changed |
lib/expander-hook.js | ||
---|---|---|
@@ -18,9 +18,9 @@ | ||
18 | 18 … | |
19 | 19 … | function handleEvent (ev) { |
20 | 20 … | var { needsExpand, element } = this |
21 | 21 … | if (!needsExpand()) { |
22 | - if (element.firstElementChild && element.firstElementChild.clientHeight > element.clientHeight) { | |
22 … | + if (element.firstElementChild.clientHeight + 5 > element.clientHeight) { | |
23 | 23 … | needsExpand.set(true) |
24 | 24 … | } |
25 | 25 … | } |
26 | 26 … | } |
Built with git-ssb-web