Closed Grinch3214 closed 3 months ago
@Grinch3214 Reproduction don't valid ☺️
@Grinch3214 Hi you need to set height, it's required for ScrollArea
component
https://stackblitz.com/edit/bthdwy?file=src%2FApp.vue
If you look for data-scrollbarimpl
element in Devtools, it's outside of data-radix-scroll-area-viewport
element
so in order to get the corrent height calculation you need to add height to the ScrollArea
component
Reproduction
https://stackblitz.com/run?file=src%2FApp.vue
Describe the bug
The Scroll-area doesn't work with max-height, only with height.
Instead of h-72 in the ScrollArea component, use max-h-72.
This is a very useful value that saves you from writing your own code to calculate the height of elements when it's not needed.
System Info
Contributes