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

Cannot position a popover to the bottom when the target is aligned to the right of the page #602

Open
JamesGagneNT opened this issue Nov 3, 2023 · 1 comment

Comments

@JamesGagneNT
Copy link

To reproduce see setup in codesandbox

The popover should be positioned below the target element but it is not. There is enough space to align the popover to the right and position it below the target.

Oddity in behavior

If you shrink the viewport down to a size where there is no longer enough space to position the popover to the left, the position is changed to the bottom.

@JamesGagneNT
Copy link
Author

JamesGagneNT commented Nov 3, 2023

looking into this a bit further and it seems as though the changes made in commit 799830d to the packages/popover/Popover.tsx file caused this behaviour, reverting all changes to the previous commit (e50758d) in that file positions the popover correctly. This also appears related to this discussion topic that i did not find before creating this issue

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

No branches or pull requests

1 participant