I have a "complex" layout made mostly with flexbox, if you open this link: http://jsbin.com/miyuwuyepu/1/edit?html,css,output Scroll completely to the bottom, you'll see the correct behaviour in Chrome but in Firefox the top bar disappears from the view (the entire page scrolls).
Is this behaviour a bug in Firefox? Is there a workaround? Is it the correct behaviour but I'm missing something or doing something I shouldn't?
html,
body,
.container {
width: 100%;
height: 100%;
margin: 0;
font-size: 10px;
}
.container {
width: 100%;
display: flex;
flex-direction: column;
margin: 0;
}
.header {
background-color: yellow;
width: 100%;
height: 3rem;
flex-shrink: 0;
}
.content {
background-color: aqua;
width: 100%;
height: 100%;
padding-top: 0.1rem;
display: flex;
padding: 0;
}
.side-bar {
background-color: green;
height: 100%;
width: 5rem;
flex-shrink: 0;
}
.boxes {
overflow: auto;
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
}
.box {
height: 8rem;
width: 8rem;
background-color: red;
margin: 1rem;
flex-shrink: 0;
}
<div class="container">
<div class="header"></div>
<div class="content">
<div class="side-bar"></div>
<div class="boxes">
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
</div>
</div>
</div>