-
Notifications
You must be signed in to change notification settings - Fork 12
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
entries -> height returning NaN #19
Comments
Opened a PR here #20 |
An alternative method needs to be used for computing the content rectangle. |
@samdenty Thanks for opening a PR. Can you add tests to reproduce your issue? I don't doubt that it happens, but I have trouble figuring out when |
@devrelm https://stackoverflow.com/q/8628005/5269570
|
Thanks! |
I'll have to dig more into this. The |
getComputedStyle->height
is returningauto
in https://github.com/pelotoncycle/resize-observer/blob/9641698c8ab52ae9715f0f08884ac1aca3c4c285/src/ContentRect.ts#L20resulting in NaN as the output.
getBoundingClientRect()
returns the correct boundaries for the element. I'm presuminggetComputedStyle
is used for performance reasons, in which case it should fallback to usinggetBoundingClientRect->height
The text was updated successfully, but these errors were encountered: