mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:18:11 +00:00
LibWeb: Use table wrapper box width to resolve cells width
This commit is contained in:
parent
2b0ae71172
commit
d331cbba41
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue