mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:48:14 +00:00
LibWeb: Use border edges when computing overflow for the ICB
This commit is contained in:
parent
03c3b3b7e5
commit
76fa57713d
1 changed files with 2 additions and 2 deletions
|
@ -535,8 +535,8 @@ void BlockFormattingContext::layout_initial_containing_block(LayoutMode layout_m
|
|||
// Compute scrollable overflow.
|
||||
float bottom_edge = 0;
|
||||
float right_edge = 0;
|
||||
icb.for_each_in_subtree_of_type<Box>([&](auto& child) {
|
||||
auto child_rect = child.absolute_rect();
|
||||
icb.for_each_in_subtree_of_type<Box>([&](Box& child) {
|
||||
auto child_rect = child.bordered_rect();
|
||||
bottom_edge = max(bottom_edge, child_rect.bottom());
|
||||
right_edge = max(right_edge, child_rect.right());
|
||||
return IterationDecision::Continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue