-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
collapse: remove overflow hidden even if height does not match perfect #4203
collapse: remove overflow hidden even if height does not match perfect #4203
Conversation
I believe it has to do with the fact that function is called at multiple steps, but not totally sure. I think there are more modern features that can make this actually much easier and simpler, but won't satisfy older targets (Animation API, Animating Grid Rows). |
Thanks! |
Thank you for merging 🚀 |
I encountered the same issue today and can confirm that this PR fixes it. Thank you @gehrisandro! |
Sometimes it happens, that the
overflow: hidden
style remains on the element after it has expanded.The reason is, that there is a condition checking that the element height as reached the full height, but sometimes the values do not match perfectly. For example,
full
is100.5
butel.getBoundingClientRect().height
returns100.4765625
.This PR changes the condition to allow a difference up to 1px.
To be honest, I am not sure, if the condition is necessary at all.