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

Reference object poppers positioned incorrectly when not added to document root #800

Closed
Benjamin-Dobell opened this issue Jul 9, 2019 · 0 comments · Fixed by CloudsdaleGroup/AnimFM#4

Comments

@Benjamin-Dobell
Copy link

Benjamin-Dobell commented Jul 9, 2019

CodePen demo

https://codepen.io/anon/pen/MMZwLx

Steps to reproduce the problem

  1. Add a popper element to the DOM in any element whose local coordinate space is not the same as client coordinate i.e. Add a popper element somewhere other than the document root.
  2. Create a popper positioned using a reference object, as opposed to a reference element.

What is the expected behavior?

Popper to be positioned according to the values returned by the reference object.

What went wrong?

Popper is offset too far to the right and/or down depending on where the popper parent element exists within the page.

Any other comments?

PR incoming.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant