Making a flexbox child have a scroll bar instead of growing, takes a container with fixed height. easy to create in a an isolated environment:
#container {
height: 100%;
display: flex;
flex: 0 0 auto;
flex-flow: column;
}
#list {
display: flex;
flex-flow: column;
overflow: auto;
}
https://jsfiddle.net/1yjk5ojp/
but let's say i want to use a page header. i don't know it's exact size, so i can't use aboslute position with mergin. i also can't use any flex component along the way, cuz it's must be fixed size.
for example - added a 100px header
<div style="height: 100px;">
<h1>Page header</h1>
</div>
https://jsfiddle.net/z6dsq822/1/
is there anything i can do to make a fixed height component after an unknown size component?
my constrains are that i don't want another scroll bar, and i want the header to be outside this structure (it's a large application with different views, the header is in a template)