Skip to content
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

[Flare] Ensure getAbsoluteBoundingClientRect aligns with offsetParent #15720

Merged
merged 2 commits into from
May 23, 2019

Conversation

trueadm
Copy link
Contributor

@trueadm trueadm commented May 23, 2019

This refines getAbsoluteBoundingClientRect so that we we align with the DOM offsetParent API. Specifically, offsetParent relates to both the current DOM node and its parent node – so we should also do the same to ensure we're making the right calculation in regards to bailing out.

Copy link
Contributor

@threepointone threepointone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ugh I should have caught this in your earlier PR, sorry!

Stamping, but we should figure out how to do real tests for this at some point. Maybe our current setup isn’t sufficient.

@sizebot
Copy link

sizebot commented May 23, 2019

No significant bundle size changes to report.

Generated by 🚫 dangerJS

@trueadm trueadm merged commit 025b07b into facebook:master May 23, 2019
@trueadm trueadm deleted the getAbsoluteBoundingClientRect-fixes branch May 23, 2019 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants