1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:27:35 +00:00

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.
This commit is contained in:
martinfalisse 2022-10-30 12:50:05 +01:00 committed by Andreas Kling
parent e773b9abe9
commit dc9f8218a9

View file

@ -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++;