git ssb

10+

Matt McKegg / patchwork



Commit cc7e6b63c111925ebdeda7d37bfcc7ef98348e76

expander-hook: fix tolerance

Matt McKegg committed on 12/15/2017, 11:31:49 PM
Parent: fc4bdfbe7e94b2507aba1991405f77aa19c43e3c

Files changed

lib/expander-hook.jschanged
lib/expander-hook.jsView
@@ -18,9 +18,9 @@
1818
1919 function handleEvent (ev) {
2020 var { needsExpand, element } = this
2121 if (!needsExpand()) {
22- if (element.firstElementChild && element.firstElementChild.clientHeight > element.clientHeight) {
22 + if (element.firstElementChild.clientHeight + 5 > element.clientHeight) {
2323 needsExpand.set(true)
2424 }
2525 }
2626 }

Built with git-ssb-web