LibWeb: Calculate a cell's width using min-content

This commit is contained in:
Simon Wanner 2022-03-28 14:42:34 +02:00 committed by Andreas Kling
parent e5a779aecf
commit 6dbd00970d
Notes: sideshowbarker 2024-07-17 16:37:46 +09:00

View file

@ -85,7 +85,7 @@ void TableFormattingContext::calculate_column_widths(Box const& row, Vector<floa
bool use_auto_layout = !table || (!table->computed_values().width().has_value() || (table->computed_values().width()->is_length() && table->computed_values().width()->length().is_auto()));
row.for_each_child_of_type<TableCellBox>([&](auto& cell) {
auto& cell_state = m_state.get_mutable(cell);
compute_width(cell);
compute_width(cell, LayoutMode::MinContent);
if (use_auto_layout) {
(void)layout_inside(cell, LayoutMode::MaxContent);
} else {