I have two columns. The left column should dictate the height of the right column, but its own height will vary. If the left column has more items, the right column should grow to match it. If the right column has more items, it should stop at the height of the left column, then scroll.
I have tried playing around with flexbox and can't seem to get it to work how I'd like. I know I can do this with javascript but I'm sure there's got to be a purely css solution that I'm just not finding.
Here's what I have currently:
<div class="row" style="display: flex;">
<div class="col-xs-12" style="flex: 0 0 auto;">
<div class="panel panel-default">
<div class="panel-heading">Panel 1 header</div>
<div class="panel-body" style="background-color: red;">
<ul>
<li>0 to many items</li>
<li>0 to many items</li>
<li>0 to many items</li>
<li>0 to many items</li>
<li>0 to many items</li>
</ul>
</div>
</div>
</div>
<div class="col-xs-12" style="flex: 0 0 auto;">
<div class="panel panel-default">
<div class="panel-heading">Panel 2 header</div>
<div class="panel-body" style="background-color: blue;">
<ul>
<li>0 to many items</li>
<li>0 to many items</li>
<li>0 to many items</li>
<li>0 to many items</li>
<li>0 to many items</li>
<li>scroll</li>
<li>scroll</li>
</ul>
</div>
</div>
</div>
</div>