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:
Andreas Kling 2022-07-13 23:23:56 +02:00
parent 15c290461f
commit 0636e1db61

View file

@ -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();
}
}