diff options
author | Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com> | 2023-01-24 17:13:59 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-01-24 20:47:11 +0100 |
commit | d331cbba41c3521c1e8befb2f6a56e3beed5fa97 (patch) | |
tree | 507c6622a23ec4784ef1ca8d2fb8fd61b55cdeee /Userland/Libraries/LibWeb/Layout | |
parent | 2b0ae71172fcd51c22d0911b9f1606609a9c8387 (diff) | |
download | serenity-d331cbba41c3521c1e8befb2f6a56e3beed5fa97.zip |
LibWeb: Use table wrapper box width to resolve cells width
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout')
-rw-r--r-- | Userland/Libraries/LibWeb/Layout/TableFormattingContext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/TableFormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/TableFormattingContext.cpp index 677cc04da9..6ca60960c4 100644 --- a/Userland/Libraries/LibWeb/Layout/TableFormattingContext.cpp +++ b/Userland/Libraries/LibWeb/Layout/TableFormattingContext.cpp @@ -106,7 +106,7 @@ void TableFormattingContext::compute_table_measures() size_t max_cell_column_span = 1; for (auto& cell : m_cells) { - auto width_of_containing_block = m_available_space->width.to_px(); + auto width_of_containing_block = m_state.get(*table_wrapper().containing_block()).content_width(); auto width_of_containing_block_as_length = CSS::Length::make_px(width_of_containing_block); auto& computed_values = cell.box.computed_values(); CSSPixels padding_left = computed_values.padding().left().resolved(cell.box, width_of_containing_block_as_length).to_px(cell.box); |