mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-13 03:29:49 +00:00
LibWeb: Fix bug in placing row-constrained grid items
For row-constrained items (with a row position defined in the CSS), should be checking for an available position in that row and not in another..
This commit is contained in:
parent
a528ea71d1
commit
f3bf01f265
Notes:
sideshowbarker
2024-07-17 06:12:32 +09:00
Author: https://github.com/martinfalisse
Commit: f3bf01f265
Pull-request: https://github.com/SerenityOS/serenity/pull/15271
Reviewed-by: https://github.com/MacDue
1 changed files with 1 additions and 1 deletions
|
@ -303,7 +303,7 @@ void GridFormattingContext::run(Box const& box, LayoutMode, AvailableSpace const
|
|||
auto column_span = child_box.computed_values().grid_column_start().is_span() ? child_box.computed_values().grid_column_start().raw_value() : 1;
|
||||
bool found_available_column = false;
|
||||
for (int column_index = column_start; column_index < (int)occupation_grid[0].size(); column_index++) {
|
||||
if (!occupation_grid[0][column_index]) {
|
||||
if (!occupation_grid[row_start][column_index]) {
|
||||
found_available_column = true;
|
||||
column_start = column_index;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue