Replies: 1 comment 2 replies
-
After digging a little I'm wondering if there is an issue here: https://github.com/adobe/react-spectrum/blob/main/packages/%40react-aria/overlays/src/calculatePosition.ts#L354? I'm guessing, but it seems like maybe the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I'm having an issue whereby a Select component will render its Popover with placement 'top' despite there being plenty of space to render it below.
This happens in a specific situation where the number of items in the List is more than can be displayed in view, meaning that the Popover will have a scroll (not a problem). This makes sense, because it's choosing to render where there is the most available space to have more content in view.
However, the problem persists even when using
maxHeight
on the Popover component and setting amax-height
on the List component, as well.In the screenshot below, the Popover's maxHeight is 300px, but any time the Select is below the centre point of the page, the placement will always resolve to 'top' rather than 'bottom':
I can't work out why this is 😅 does anyone have any ideas?
Beta Was this translation helpful? Give feedback.
All reactions