[Bug]: Combobox options list overflows the screen top under small viewports #27565
Closed
2 tasks done
Labels
Component: Combobox
Fluent UI react-components (v9)
Needs: Investigation
The Shield Dev should investigate this issue and propose a fix
Resolution: Soft Close
Soft closing inactive issues over a certain period
Library
React Components / v9 (@fluentui/react-components)
System Info
Are you reporting Accessibility issue?
None
Reproduction
https://codesandbox.io/s/runtime-river-pg2kgy?file=/example.tsx
Bug Description
Actual Behavior
Currently, the listbox (Options list) has a max-height of 80vh. This would work if the Combobox is at the top or bottom of the page, but doesn't work if it's in the middle.
Under small viewports (where the listbox can't open to the bottom or right), the listbox would overflow the screen top edge.
Expected Behavior
The listbox should be always clamped by the screen edges.
Logs
No response
Requested priority
High
Products/sites affected
PowerApps
Are you willing to submit a PR to fix?
no
Validations
The text was updated successfully, but these errors were encountered: