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

When parent container has overflow set, popper positioning screws up #42

Closed
danchristian opened this issue Jul 4, 2018 · 4 comments
Closed
Labels

Comments

@danchristian
Copy link

When the parent container has overflow: auto or overflow: scroll set, the placement of the poppers is incorrect.

https://jsfiddle.net/ec4o2wt0/

How can I fix this?

I see a similar issue here perhaps floating-ui/floating-ui#248

@danchristian
Copy link
Author

After seeing this issue,, I have tried popper(trigger="click", boundaries-selector="viewport") but the problem still persists.

@danchristian
Copy link
Author

After a search around, I saw a similar issue on tippy.js (which uses popper.js) and worked out how to solve this:

popper(trigger="click", :options="{ modifiers: { preventOverflow: {escapeWithReference: true}}}")

@RobinCK
Copy link
Owner

RobinCK commented Jul 6, 2018

@danchristian thanks

@RobinCK RobinCK added the doc label Jul 6, 2018
@voodoocode
Copy link

I want to add up on @danchristian solution, by noting that I only got that working by also using:
:append-to-body="true"

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

No branches or pull requests

3 participants