mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 20:47:45 +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:
parent
e773b9abe9
commit
dc9f8218a9
1 changed files with 0 additions and 1 deletions
|
@ -539,7 +539,6 @@ void GridFormattingContext::run(Box const& box, LayoutMode, AvailableSpace const
|
||||||
goto finish;
|
goto finish;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
auto_placement_cursor_x = 0;
|
|
||||||
}
|
}
|
||||||
auto_placement_cursor_x = 0;
|
auto_placement_cursor_x = 0;
|
||||||
auto_placement_cursor_y++;
|
auto_placement_cursor_y++;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue