react-bootstrap / dom-helpers

tiny, extremely modular, DOM helper library for IE9+
MIT License
404 stars 65 forks source link

scrollParent: Should clientHeight be used to detect #104

Open bplok20010 opened 4 years ago

bplok20010 commented 4 years ago

https://github.com/react-bootstrap/dom-helpers/blob/22d6864a0a9b3c1bb13bf54faa958c634c5ac339/src/scrollParent.ts#L35

Should clientHeight be used to detect?

(firstPossible || height(element, true) < element!.scrollHeight)