From 76fa57713d7db38736c636f571d9d4a0c82b7e3d Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 28 Oct 2021 18:54:02 +0200 Subject: [PATCH] LibWeb: Use border edges when computing overflow for the ICB --- Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp index 663394fbe5..34985f7633 100644 --- a/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp +++ b/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp @@ -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([&](auto& child) { - auto child_rect = child.absolute_rect(); + icb.for_each_in_subtree_of_type([&](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;