mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 23:28:11 +00:00
LibWeb: Fix height computation (again) :^)
Height computation algorithm is actually different for absolutely positioned boxes and block formatting contexts (where it doesn't include floats) Fixes #6408
This commit is contained in:
parent
0eedf3bfea
commit
174c940479
3 changed files with 44 additions and 2 deletions
|
@ -160,7 +160,7 @@ static Gfx::FloatSize solve_replaced_size_constraint(float w, float h, const Rep
|
|||
return { w, h };
|
||||
}
|
||||
|
||||
float FormattingContext::compute_auto_height_for_block_level_element(const Box& box)
|
||||
static float compute_auto_height_for_block_level_element(const Box& box)
|
||||
{
|
||||
Optional<float> top;
|
||||
Optional<float> bottom;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue