LibWeb: Consider every row when calculating table width

This commit is contained in:
Gingeh 2024-11-05 15:34:35 +11:00 committed by Sam Atkins
commit d1b967bca5
Notes: github-actions[bot] 2024-11-05 10:59:07 +00:00
4 changed files with 88 additions and 15 deletions

View file

@ -43,7 +43,7 @@ TableGrid TableGrid::calculate_row_column_grid(Box const& box, Vector<Cell>& cel
rowspan = node.row_span();
}
if (x_width < x_current + colspan && y_current == 0)
if (x_width < x_current + colspan)
x_width = x_current + colspan;
if (y_height < y_current + rowspan)
y_height = y_current + rowspan;