Replies: 2 comments 1 reply
-
|
@BrianHung This is possible for me by specifying https://codesandbox.io/s/scroll-area-fill-parent-5kubxo?file=/App.js Does that work for your case? I might be misunderstanding. |
Beta Was this translation helpful? Give feedback.
-
|
I have a solution. Make the ScrollAreaViewport a CSS Container (using Basing on the Scroll Area demo from the Radix docs: .ScrollAreaViewport {
container-name: scroll-viewport;
container-type: scroll-state size;
}
.h-100cqh {
height: 100cqh;
}<ScrollArea.Root className="ScrollAreaRoot">
<ScrollArea.Viewport className="ScrollAreaViewport">
<div class="h-100cqh">
This content will take up 100% of the scroll-area viewport height.
</div>
</ScrollArea.Viewport>
</ScrollArea.Root>Note: Tailwind's |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Wondering why for the ScrollArea component, min-height isn't also set to 100% like min-width is.
primitives/packages/react/scroll-area/src/ScrollArea.tsx
Line 183 in a53790e
Running into an issue where I can't stylize that wrapper div so that'll be same size as its parent.
Beta Was this translation helpful? Give feedback.
All reactions