I'm aware of there are many flex item overflow in IE questions here, however I couldn't find the solution for the vertically overflow answer.
If you run in Chrome, you will see the content scroll vertically with an internal scroll, it respect the max-height
of the parent. (expected)
However if you run in IE 11, it overflows instead of creating an internal scroll.
any idea?
Edit: A little of context, I'm trying to create a modal where the dialog has auto height and grow until the max-height then set internal scroll in body. something similar to https://material-ui.com/demos/dialogs/#scrolling-long-content. (scroll = paper)
Not sure how they made IE works
.container {
max-height: 100vh;
display: flex;
flex-direction: column;
background: blue;
}
.body {
overflow-y: auto;
flex: 1 1 auto;
}
.content {
width: 200px;
height: 1200px;
}
<div class="container">
<div class="header">aa</div>
<div class="body">
<div class="content">
content
</div>
</div>
<div class="footer">ccc</div>
</div>