mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 03:09:08 +00:00
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:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user