-
-
Notifications
You must be signed in to change notification settings - Fork 91
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
dropdown goes off-screen #112
Comments
Thanks for reporting. Am able to reproduce this. This seems to happen only when the dropdown has no value set when it is clicked |
@gluck – I rewrote much of the menu sizing/positioning logic and released the fix in |
I'm getting negative values for:
Then top gets set to I believe proper values for min/max offsets should be:
(should also ensure non-negative, but still sign invert should be done in number, not in string) |
yuanqing/create-figma-plugin#112 Co-authored-by: Francois Valdy <604263+undefined@users.noreply.github.com>
Thanks for testing this! The version I shipped in |
Since you are working on the fix for this algorithm, maybe good to report another aspect of this issue (let me know if you prefer making a new issue). When the component is rendered within a container with I assume it's because of the usage of a combination of To support a use-case with |
Since I upgraded to latest/v2 (from 1.8.4), dropdown menus are painted off screen when the dropdown is near the top of the page.
Can be reproduced by removing
layout: 'centered'
in storybook (or removing the corresponding class as I do in the GIF below), the first options are no longer visible.The text was updated successfully, but these errors were encountered: