I'm having an issue in IE11/Edge when trying to set a child of a Flex-box parent scrollable using Flex-grow instead of setting a height.. since in the project I've got I cannot use heights for this type of thing as it would need to be dynamic.
Have a look at the snippet below.. do you guys ever had an issue like this?
Try it Google Chrome and then IE11/Edge to see the difference
main {
max-width: 100px;
max-height: 200px;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
}
main section {
-ms-flex-preferred-size: 50px;
flex-basis: 50px;
-ms-flex-negative: 0;
flex-shrink: 0;
background-color: red;
}
main div {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-flex: 1;
-ms-flex-positive: 1;
flex-grow: 1;
background-color: grey;
}
main div article {
overflow-y: auto;
}
<main>
<section>head</section>
<div>
<article>
fewa fwae awf wa wafwafewa fwae awf wa wafwafewa fwae awf wa wafwafewa fwae awf wa wafwafewa fwae awf wa wafwafewa fwae awf wa wafwafewa fwae awf wa wafwafewa fwae awf wa wafwafewa fwae awf wa wafwafewa fwae awf wa wafwafewa fwae awf wa wafwa
</article>
</div>
</main>