From dc9f8218a9fdf77800235b24a71cb225638dd0c2 Mon Sep 17 00:00:00 2001 From: martinfalisse Date: Sun, 30 Oct 2022 12:50:05 +0100 Subject: [PATCH] LibWeb: Fix bug in placing grid items Before were resetting the auto_placement_cursor_x to 0 at the end of the row but this was incorrect, especially since the auto_placement_cursor_y wasn't being incremented. This made it so that auto-placed items were occasionally placed before absolutely-placed ones even after the latter had already been placed. --- Userland/Libraries/LibWeb/Layout/GridFormattingContext.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/Layout/GridFormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/GridFormattingContext.cpp index e121de505b..f946b0e2e8 100644 --- a/Userland/Libraries/LibWeb/Layout/GridFormattingContext.cpp +++ b/Userland/Libraries/LibWeb/Layout/GridFormattingContext.cpp @@ -539,7 +539,6 @@ void GridFormattingContext::run(Box const& box, LayoutMode, AvailableSpace const goto finish; } } - auto_placement_cursor_x = 0; } auto_placement_cursor_x = 0; auto_placement_cursor_y++;