Skip to content

Commit 5aeadd9

Browse files
committed
Merge branch 'develop' into cursor-handling-overhaul
2 parents 2b6482f + 449f9cb commit 5aeadd9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/src/element/flow.cpp

+8
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,15 @@ namespace cycfi { namespace elements
1616
{
1717
view_limits limits_ = { { 0, 0 }, { full_extent, full_extent } };
1818
if (!_flowable.needs_reflow())
19+
{
1920
limits_.min.y = base_type::limits(ctx).min.y;
21+
22+
for (std::size_t i = 0; i != _flowable.size(); ++i)
23+
{
24+
auto el = _flowable.at(i).limits(ctx);
25+
clamp_min(limits_.min.x, el.min.x);
26+
}
27+
}
2028
return limits_;
2129
}
2230

0 commit comments

Comments
 (0)