Skip to content
Discussion options

You must be logged in to vote

Ok, I think I know what's going on. The --radix-popper-content-available-height takes into account the alignment and it seems that in the version where floating-ui is used in Radix the available height is not calculated as expected if the alignment is centered and placement is left/right.

You can play around with the align prop to see this happening. https://codesandbox.io/p/sandbox/loving-platform-6kyzbe?file=%2FApp.jsx

Looks like this has been fixed at floating-ui/floating-ui#2163. And it seems to work as expected https://codesandbox.io/s/great-microservice-onol1m?file=/src/App.tsx

Therefore, in your case I think you will have to use max-height: 100vh

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@kieranm
Comment options

@joaom00
Comment options

Answer selected by kieranm
@kieranm
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants