Basically the title. I have a flex container, that has its height set to a specific value (100% but its parent is a specific one. I want the items to fill the available space, regardless of the content in them (specifically the second item, the treeview1, which has its overflow set to scroll. However, the items simply don't stretch to fill. Do you have any suggestions for me? Thanks :)
html, body, .container-fluid, .row, #left-panel {
height: 100%;
}
.thumbnail-view {
margin: 2px;
padding: 2px;
width: 100%;
overflow-y: scroll;
}
.buttons-placeholder {
padding-right: 15px;
padding-left: 15px;
display: flex;
justify-content: center;
flex-flow: row wrap;
}
.buttons-placeholder button {
margin: 2px;
flex-grow: 1;
}
.btn-success {
width: 100%;
margin-bottom: 10px;
}
<div class="container-fluid">
<div class="row">
<div class="col-md-2" id="left-panel">
<div class="buttons-placeholder">
<button type="button" class="btn btn-primary">Load Batch</button>
<button type="button" class="btn btn-primary">Save Batch</button>
</div>
<div class="thumbnail-view"></div>
<button type="button" class="btn btn-success">Submit</button>
</div>
</div>
</div>
Edit: Sorry if the formatting is off, i'm kind of new to this. Edit 2: Cleaned up the code a bit.