LibWeb: First cut of extremely naive table row layout

This first version simply auto-sizes all table cells and then places
them on a horizontal line.
This commit is contained in:
Andreas Kling 2020-06-12 23:18:51 +02:00
parent c5a3d99dd5
commit 196a3986d6
Notes: sideshowbarker 2024-07-19 05:41:32 +09:00
2 changed files with 12 additions and 2 deletions

View file

@ -49,6 +49,7 @@ void LayoutTableRowGroup::layout(LayoutMode layout_mode)
float content_height = 0;
for_each_child_of_type<LayoutTableRow>([&](auto& row) {
row.set_offset(0, content_height);
row.layout(layout_mode);
content_height += row.height();
});