mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 09:51:57 -05:00
LibWeb: Update flex line "remaining free space" when finished
Since we re-use this value later in the layout algorithm, we have to update it before leaving the "resolve flexible lengths" step.
This commit is contained in:
parent
15c290461f
commit
0636e1db61
1 changed files with 2 additions and 0 deletions
|
@ -963,6 +963,8 @@ void FlexFormattingContext::resolve_flexible_lengths()
|
|||
for (auto& flex_item : flex_line.items) {
|
||||
flex_item->main_size = flex_item->target_main_size;
|
||||
}
|
||||
|
||||
flex_line.remaining_free_space = calculate_free_space();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue