1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:18:13 +00:00

LibWeb: Take rowspan into account while table formatting

This commit is contained in:
Aliaksandr Kalenik 2022-12-04 22:44:19 +03:00 committed by Andreas Kling
parent 1c6783cd7e
commit dbf76e8ae1
3 changed files with 9 additions and 1 deletions

View file

@ -66,7 +66,7 @@ void TableFormattingContext::calculate_row_column_grid(Box const& box)
x_width++;
const size_t colspan = static_cast<TableCellBox*>(child)->colspan();
const size_t rowspan = 1;
const size_t rowspan = static_cast<TableCellBox*>(child)->rowspan();
if (x_width < x_current + colspan)
x_width = x_current + colspan;