mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 00:31:14 +00:00
LibWeb: Calculate a cell's width using min-content
This commit is contained in:
parent
e5a779aecf
commit
6dbd00970d
Notes:
sideshowbarker
2024-07-17 16:37:46 +09:00
Author: https://github.com/skyrising Commit: https://github.com/SerenityOS/serenity/commit/6dbd00970d Pull-request: https://github.com/SerenityOS/serenity/pull/13314
|
@ -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…
Reference in a new issue