HELP ME w/ SIMPLE CSS/FLEXBOX
(please ty, istg im losing my mind over something so simple)
GOAL: I want to apply flex-grow to the red ScrollArea to fill the remaining space of <section> in the first <ResizablePanel>.
CODE: ResizablePanelGroup > ResizablePanel > Section > Div & ScrollArea is the component tree.
DM or reply if you can help me out! I've attached a screenshot of the first <ResizablePanel>, and the red element is <ScrollArea>. Thanks!
![No description](https://cdn.answeroverflow.com/1232820726617346058/Screenshot_2024-04-24_at_3.25.55_PM.png)
1 Reply
ANSWER: follow the cascade up and keep defining the height of the (grand)parent(s) of what you want to grow. Make sure that you apply flex everywhere you grow because grow is a flexbox class.