-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
BUG: Misalignment of Popover Arrow with side: "bottom" and align: "start" #531
Comments
This is happening, is not respecting the side/align properties sent in the popover options |
This problem still exists, even when |
The problem seems to be here: src/popover.ts#L550 |
This has been patched in 1.3.2. This happens when driver is unable to accurately align popover arrow with the active element from one of the fixed CSS positions (left, right, center) we have in the CSS. The temporary solution is to hide the arrow and reposition the popover closer to the element to compensate for the space initially intended for the arrow, if we are unable to directly point towards the element. However, I am thinking of integrating floating-ui as it will simplify the positioning logic as well as handle these edge-cases. I will have to check the impact of that on the bundle size and decide accordingly. |
Issue: Misalignment of Popover Arrow with
side: "bottom"
andalign: "start"
Description:
I'm implementing Driver.js in my project, and overall, the implementation has been simple and straightforward. However, I encountered an issue when I tried to adjust the arrow positions for the popovers.
According to the documentation, setting
side: "bottom"
andalign: "start"
should position the popover below the selected element, with the arrow pointing towards the start (left). However, what actually happens is that the popover appears in the correct position, but the arrow is displayed at the end (right) instead of the start.Steps to Reproduce:
Expected Behavior:
The arrow should appear on the left (start) side when
align: "start"
is specified.Actual Behavior:
The arrow appears on the right (end) side, even when
align: "start"
is used.Environment:
Let me know if you need any additional information to help investigate this issue.
The text was updated successfully, but these errors were encountered: