I am looking to implement overflow: scroll within a flexbox layout.
I am unsure of how to link an image directly from my Google Drive, so I have provided the URL instead: https://drive.google.com/open?id=17uM5twoprxmbo5xQ37kgeTaMwn7FGSu_
When using the overflow: scroll component in a flexbox, I noticed that it causes the container height to increase.
Is there a way to prevent this issue?
Below is the bootstrap code snippet:
<div class="row display-flex">
<div class="col" style="padding: 0; max-width: 35rem; height: auto">
<b-img fluid" src="image" />
</div>
<div class="col" style="max-width: 18rem; background: white;">
<ul style="list-style: none; margin:0; padding:0;">
<li><b-img :src="post.owner.thumbnail" rounded="circle" style="width: 24px; height: 24px;" /></li>
<li>{{ post.owner.username }}</li>
<li>{{ post.title }}</li>
</ul>
<div class="comment asd" style="overflow-y: scroll;">
<p>blah..blah..blah..blah..blah..blah..blah..blah..blah..</p>
<p>blah..blah..blah..blah..blah..blah..blah..blah..blah..</p>
<p>blah..blah..blah..blah..blah..blah..blah..blah..blah..</p>
<p>blah..blah..blah..blah..blah..blah..blah..blah..blah..</p>
<p>blah..blah..blah..blah..blah..blah..blah..blah..blah..</p>
<p>blah..blah..blah..blah..blah..blah..blah..blah..blah..</p>
<p>blah..blah..blah..blah..blah..blah..blah..blah..blah..</p>
........
.row.display-flex {
display: flex;
flex-wrap: wrap;
}
.display-flex .col {
display: flex;
flex-direction: column;
}
Thank you!