-
Notifications
You must be signed in to change notification settings - Fork 4.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
Misaligned menu when using menuPortalTarget and menuPlacement = auto #4336
Comments
Greetings @ArnaudWeyts , I am unable to replicate the described behavior.
|
@ebonow Hey, thanks for getting back to me
|
I'm running Chrome Version 87.0.4280.88 on Mac OSX and I am unable to replicate. Can someone else perhaps take a look and verify what they see? Screen.Recording.2021-01-07.at.5.45.24.PM.mov |
@ebonow I've just discovered that this only seems to be the case when a mouse is connected to my macbook, and causes the scrollbars to be displayed. (As you can see in my gif, the scrollbar is displayed, but when using the trackpad, macbooks don't display scrollbars by default) |
@ArnaudWeyts Thank you for the update. I am able to replicate this now when there is a mouse. I'll see if I can discover what might be causing this discrepancy. Please let me know if you come across the answer to this in the meantime. |
I am getting the same issue on a Macbook with no mouse. |
Are you reporting a bug or runtime error?
A Bug
For some reason the menu is misaligned slightly to the left when using the body as a
menuPortalTarget
and setting themenuPlacement
to auto, I'm not sure why this is the case and it only seems to happen in a specific layout (select on the right bottom), it seems like it could be adjusting for a potential scrollbar or something. When you hover over the items, the menu suddenly jumps to the correct position.https://codesandbox.io/s/react-select-v3-sandbox-forked-d5txb?file=/example.js
Thanks for your work on the library!
The text was updated successfully, but these errors were encountered: