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

Incorrect offset for popover.side: "right" #521

Open
abvas opened this issue Aug 11, 2024 · 0 comments
Open

Incorrect offset for popover.side: "right" #521

abvas opened this issue Aug 11, 2024 · 0 comments

Comments

@abvas
Copy link

abvas commented Aug 11, 2024

If popover.side: "right" is set, then popover is offset to the left.

You can see this even on the "popover-position" demo

  1. Load the page:
    https://driverjs.com/docs/popover-position

  2. Select "Right Start", "Right Center" or "Right End"

right

Most likely, the scrollbar is taken into account here and "window.innerWidth" is used
I think that the situation will be corrected by using "document.documentElement.clientWidth" to exclude the scrollbar.

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