I have a three column flexbox
layout, where the first column is a list of items with a filter, the second column is a long body of text, and the third column an infinitely-scrolling list. In Chrome, the left-side list behaves as expected. It scrolls to the bottom, and reveals the info
paragraph. In Firefox and Edge, however, the list does not scroll to the bottom: it cuts off at the bottom of the page.
Here's the markup:
<div class="container">
<div class="left-sidebar">
<div class="filter-wrap">...</div>
<div class="list-wrap">
<ul class="list">...</ul>
<p class="info">...</p>
</div>
</div>
<div class="main-content">...</div>
<div class="right-sidebar">...</div>
</div>
And the CSS concerning the left-hand side:
.container {
display: flex;
margin: 0;
padding: 0;
box-sizing: border-box;
height: 100%;
width: 100%;
overflow: hidden;
}
.left-sidebar {
display: flex;
flex-grow: 1;
flex-basis: 0px;
flex-direction: column;
overflow-y: hidden;
}
.filter-wrap {
position: relative;
padding: 20px 20px 0 20px;
}
.list-wrap {
font-size: 14px;
flex-grow: 1;
flex-basis: 0px;
overflow-y: auto;
padding: 15px 20px 15px 20px;
}
.list-wrap ul { word-break: break-all; }
.info {
cursor: pointer;
background: none;
}