Combobox: Increase min height of the menu (#96327)
This commit is contained in:
@@ -41,7 +41,7 @@ export const useComboboxFloat = (
|
||||
const preferredMaxHeight = availableHeight - POPOVER_PADDING;
|
||||
|
||||
const width = Math.max(preferredMaxWidth, 0);
|
||||
const height = Math.min(Math.max(preferredMaxHeight, OPTION_HEIGHT), POPOVER_MAX_HEIGHT);
|
||||
const height = Math.min(Math.max(preferredMaxHeight, OPTION_HEIGHT * 6), POPOVER_MAX_HEIGHT);
|
||||
|
||||
setPopoverMaxSize({ width, height });
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user