You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Quite frankly I struggle to grasp the difference between all of them. If I recall correctly I tried each of them in the library, and landed with scrollHeight since it seemed to work without any issues. I'm open to a PR to change it if we can document a good reason for the change.
Ah, I think I remember. When debugging #14, I discovered that when padding is applies to the collapse element, scrollHeight is the only measurement that is accurate. In this example, I changed the measurement to clientHeight, and it ends the transition prematurely.
This lib gets children size with scrollHeight but it can cause issues if that child contains something with a dropdown that would not be displayed but would still count towards scrollHeight.
We found workarounds in our use cases but we were wondering why this choice?
There are some alternatives: https://medium.com/@jbbpatel94/difference-between-offsetheight-clientheight-and-scrollheight-cfea5c196937
🚀
The text was updated successfully, but these errors were encountered: