mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:17:44 +00:00
LibWeb: Pass available inner space to BFC root auto height calculation
This commit is contained in:
parent
1ee99017e2
commit
4f752ca791
1 changed files with 1 additions and 1 deletions
|
@ -340,7 +340,7 @@ void BlockFormattingContext::compute_height(Box const& box, AvailableSpace const
|
|||
height = compute_height_for_replaced_element(m_state, verify_cast<ReplacedBox>(box), available_space);
|
||||
} else {
|
||||
if (should_treat_height_as_auto(box, available_space)) {
|
||||
height = compute_auto_height_for_block_level_element(box, available_space);
|
||||
height = compute_auto_height_for_block_level_element(box, m_state.get(box).available_inner_space_or_constraints_from(available_space));
|
||||
} else {
|
||||
height = calculate_inner_height(box, available_space.height, computed_values.height()).to_px(box);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue