I'm not a css expert and I don't understand why my right-bottom divs don't work as expected.
I'm using a jquery extension (jquery-resizable) to resize some panels and I want that one of my last divs .overflow-container
(level 2) keeps the size of his parent div #resizable-panel-right-bottom
(level 1). It is ok but if I set a high value in the inner div .overflow-content
(level 3) for the height, then the height for .overflow-container
(level 2) isn't correct anymore.
Here I have a draft on codepen of what I want to do:
#resizable-panel-right-bottom {
flex: 1 1 auto;
min-height: 200px;
padding: 5px;
}
.overflow-container {
height: 100%;
padding: 5px;
background: aqua;
overflow: scroll; /*should be "overflow: auto" I know*/
}
.overflow-content {
height: 1000px;
padding: 5px;
background: pink;
}
The goal is to have a jquery datatable (from datatables.net) in the last div.
Actually I'm using this JS libraries: jQuery 3.3.1 bootstrap 4 jquery-resizable