[Select]: Any way to set fixed height in SelectPrimitive.Content without breaking position? #3524
Unanswered
programming-with-ia
asked this question in
Help
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to set a fixed height on
SelectPrimitive.Content
, but when I do this, scrolling causes the dropdown to reposition (seems like it changes tojustify-content: flex-end
).Here's the situation:
SelectPrimitive.Content
with a fixed height (e.g.,height: 200px
).SelectPrimitive.Content.position = "item-aligned"
and scroll helper buttons (SelectPrimitive.ScrollUpButton
andSelectPrimitive.ScrollDownButton
) are visible, the content seems to shift or jump.💡 What I want:
A scrollable dropdown with a fixed height, that doesn’t reposition itself when scrolling or when scroll buttons are shown.
📌 Question:
Is there a recommended way to achieve this while keeping the dropdown stable and scrollable?
Beta Was this translation helpful? Give feedback.
All reactions