mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:47:44 +00:00
LibWeb: Calculate a cell's width using min-content
This commit is contained in:
parent
e5a779aecf
commit
6dbd00970d
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue