I've pasted the code below. It appears that the addition of the title element causes content to be cut-off from the bottom of the scroll. If I remove the title element, no content is cut off. The title shuffles down and impacts the next element.
HTML
<div class="wrapper">
<div class="title">
Title
</div>
<div class="content">
Some long content here...
</div>
</div>
CSS
.wrapper {
border: 0;
overflow: hidden;
position: fixed;
top: 50%;
left: 50%;
width: 50%;
height: 50%;
transform: translate(-50%, -50%);
}
.title {
text-align: center;
color: white;
padding: 5px 0;
position: relative;
margin: 0;
background: #000;
}
.content {
overflow-y: auto;
height: 100%;
}
If a box shadow and border radius is added to the wrapper element, this causes further strange behaviour (if overflow hidden removed from wrapper as well).
