Currently, I am dealing with a list (#this-list) that has an input box below it. Whenever a user submits something in the input box, it gets added to the list #this-list (all of this happens within react.js). The issue arises when the list grows too long and causes the parent <div>
to resize. Is there a way to restrict the size of the list to the available height and display scrollbars when it starts overflowing?
...
<div class="d-flex flex-column h-100">
<div class="flex-fill scroll-y">
<ul id="this-list">
<li>test</li>
<li>test</li>
<li>test</li>
</ul>
</div>
...
View the page when the list is empty: https://jsfiddle.net/tomwassing/g7dkLx1h/
Check out the page when the list is filled: https://jsfiddle.net/tomwassing/u80wqj3s/