Automatically calc Combobox.Dropdown's maxHeight #8787
antonmedv
started this conversation in
Feature requests
Replies: 1 comment 3 replies
-
|
Hi, thanks for the kind words! To implement this feature, you can wrap options with Scrollarea.Autosize. Here is how it is implemented in the Select component – https://github.com/mantinedev/mantine/blob/master/packages/@mantine/core/src/components/Combobox/OptionsDropdown/OptionsDropdown.tsx#L166-L185 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
First, thanks a lot for a great component lib! We use it and love it ❤️
We use Combobox.Dropdown, with a lot of stuff inside it. So it grows quite a bit. We set maxHight to 800. And we also have div with overflow: hidden. So the dropdown get truncated. Is it possible to add a featue to automatically calculate maxHight so the dropdown will still "fit" within the window?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions