-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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 has Y overflow by default #19857
Comments
Thanks for filing this issue with us. To set expectations the developers will review this issue once capacity allows. Unless you are willing to submit the fix and our team will have a look at it. @bsunderhus - Would you be able to confirm if this is a regression, or if this behavior is an issue? |
Hi @chadsowald, I can confirm this is happening and we should fix it. @gouttierre and anyone else that takes a look at this, fyi this can be seen when zooming in to the component and happens in both v7 and v8. |
#### Pull request checklist - [x] Addresses an existing issue: Fixes #19857 - [x] Include a change request file using `$ yarn change` #### Description of changes The down caret icon in `Dropdown` was specified with the height of the component but absolutely positioned as `top: 1` which actually made it 1 pixel taller than the `Dropdown` itself. This created a scrollbar in high zoom settings. This PR fixes this by specifying `paddingTop: 1` and `top: 0` so that the caret is still in the same position but the its height is not taller than that of the component itself.
#### Pull request checklist - [x] Addresses an existing issue: Fixes microsoft#19857 - [x] Include a change request file using `$ yarn change` #### Description of changes The down caret icon in `Dropdown` was specified with the height of the component but absolutely positioned as `top: 1` which actually made it 1 pixel taller than the `Dropdown` itself. This created a scrollbar in high zoom settings. This PR fixes this by specifying `paddingTop: 1` and `top: 0` so that the caret is still in the same position but the its height is not taller than that of the component itself.
Environment Information
Please provide a reproduction of the bug in a codepen:
https://codepen.io/chmsft/pen/ZEyrwrQ
Actual behavior:
There is a 1px vertical overflow as the dropdown caret has both 'top: 1px" and height: 32px, but the containing box is 32px.
Expected behavior:
There should be no vertical overflow by default. I assume the intention was to vertically center the caret in the dropdown. The CodePen has 2 potential fixes that maintain that intention.
Priorities and help requested:
Are you willing to submit a PR to fix? No, but the CodePen has 2 potential fixes.
Requested priority: (Blocking, High, Normal, Low): Normal
The text was updated successfully, but these errors were encountered: