I saw a few messages about this issue on the bugs forum already, but they were a few years old and the users found workarounds by using flex-wrap: nowrap;
In this case, I CANNOT use that solution. I really do need to use flex-wrap: wrap;
Using bootstrap, my test HTML is this simple:
<p>Lorem Ipsum - START</p>
<p>Lorem Ipsum</p>
<p>Lorem Ipsum</p>
<p>Lorem Ipsum</p>
<p>Lorem Ipsum</p>
<p>Lorem Ipsum</p>
<p>Lorem Ipsum</p>
<p>Lorem Ipsum</p>
<p>Lorem Ipsum</p>
<p>Lorem Ipsum</p>
<div style="display: flex; flex-flow: row wrap;" class="row">
<div class="col">
<p>ROW Lorem Ipsum - START</p>
<p>ROW Lorem Ipsum</p>
<p>ROW Lorem Ipsum</p>
<p>ROW Lorem Ipsum</p>
<p>ROW Lorem Ipsum</p>
<p>ROW Lorem Ipsum</p>
<p>ROW Lorem Ipsum</p>
<p>ROW Lorem Ipsum</p>
<p>ROW Lorem Ipsum</p>
<p>ROW Lorem Ipsum</p>
<p>ROW Lorem Ipsum</p>
<p>ROW Lorem Ipsum</p>
<p>ROW Lorem Ipsum</p>
<p>ROW Lorem Ipsum</p>
<p>ROW Lorem Ipsum</p>
<p>ROW Lorem Ipsum</p>
<p>ROW Lorem Ipsum</p>
<p>ROW Lorem Ipsum</p>
<p>ROW Lorem Ipsum</p>
<p>ROW Lorem Ipsum</p>
<p>ROW Lorem Ipsum</p>
<p>ROW Lorem Ipsum</p>
<p>ROW Lorem Ipsum</p>
<p>ROW Lorem Ipsum</p>
<p>ROW Lorem Ipsum</p>
<p>ROW Lorem Ipsum - END</p>
</div>
</div>
Nothing special. But when the row overflows the page, the content is just truncated and lost. I never see the ROW Lorem Ipsum - END text. Also, just before the row, a page break is created even though the content isn't explicitly set to break before, nor is it set to avoid breaks in the middle.
Changing to flex-wrap: nowrap; DOES fix the above issues, but I have some responsive grid layouts that I simply cannot change to nowrap. I really do need the wrap, e.g. side-by-side content on medium+ resolutions with: col-12 col-md-6.
Thoughts?
In this case, I CANNOT use that solution. I really do need to use flex-wrap: wrap;
Using bootstrap, my test HTML is this simple:
<p>Lorem Ipsum - START</p>
<p>Lorem Ipsum</p>
<p>Lorem Ipsum</p>
<p>Lorem Ipsum</p>
<p>Lorem Ipsum</p>
<p>Lorem Ipsum</p>
<p>Lorem Ipsum</p>
<p>Lorem Ipsum</p>
<p>Lorem Ipsum</p>
<p>Lorem Ipsum</p>
<div style="display: flex; flex-flow: row wrap;" class="row">
<div class="col">
<p>ROW Lorem Ipsum - START</p>
<p>ROW Lorem Ipsum</p>
<p>ROW Lorem Ipsum</p>
<p>ROW Lorem Ipsum</p>
<p>ROW Lorem Ipsum</p>
<p>ROW Lorem Ipsum</p>
<p>ROW Lorem Ipsum</p>
<p>ROW Lorem Ipsum</p>
<p>ROW Lorem Ipsum</p>
<p>ROW Lorem Ipsum</p>
<p>ROW Lorem Ipsum</p>
<p>ROW Lorem Ipsum</p>
<p>ROW Lorem Ipsum</p>
<p>ROW Lorem Ipsum</p>
<p>ROW Lorem Ipsum</p>
<p>ROW Lorem Ipsum</p>
<p>ROW Lorem Ipsum</p>
<p>ROW Lorem Ipsum</p>
<p>ROW Lorem Ipsum</p>
<p>ROW Lorem Ipsum</p>
<p>ROW Lorem Ipsum</p>
<p>ROW Lorem Ipsum</p>
<p>ROW Lorem Ipsum</p>
<p>ROW Lorem Ipsum</p>
<p>ROW Lorem Ipsum</p>
<p>ROW Lorem Ipsum - END</p>
</div>
</div>
Nothing special. But when the row overflows the page, the content is just truncated and lost. I never see the ROW Lorem Ipsum - END text. Also, just before the row, a page break is created even though the content isn't explicitly set to break before, nor is it set to avoid breaks in the middle.
Changing to flex-wrap: nowrap; DOES fix the above issues, but I have some responsive grid layouts that I simply cannot change to nowrap. I really do need the wrap, e.g. side-by-side content on medium+ resolutions with: col-12 col-md-6.
Thoughts?