Looking to design a full-screen layout with a top and bottom half. The top half should display a list of items with a scroll bar if it exceeds half of the screen height.
After researching, I found a solution using the following structure:
<div id="app">
<main role="main" class="container-fluid d-flex">
<div class="row flex-fill bg-primary" style="min-height:100vh;">
<div class="col-sm h-100">
<div class="row h-50 bg-warning" style="overflow:scroll;">
<div class="col-sm">
<div>
<ul class="">
<li class="">Series 100</li>
<li class="">Series 200</li>
<li class="">Series 300</li>
<li class="">Series 400</li>
<li class="">Series 500</li>
<li class="">Series 600</li>
<li class="">Series 700</li>
<li class="">Series 800</li>
<li class="">Series 900</li>
<li class="">Series 1000</li>
</ul>
</div>
</div>
</div>
<div class="row h-50 bg-success">
<div class="col-sm">
<div>
test
</div>
</div>
</div>
</div>
</div>
</main>
</div>
http://jsfiddle.net/0zbcr7mg/4/ (please adjust output window size accordingly)
However, when additional items were added to the list, the layout broke - the scrollbar exceeded the expected height:
http://jsfiddle.net/0zbcr7mg/3/
What modifications should be made in the markup for consistent behavior regardless of the number of elements in the list?