Skip to content

Commit 0636e1d

Browse files
committed
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.
1 parent 15c2904 commit 0636e1d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -963,6 +963,8 @@ void FlexFormattingContext::resolve_flexible_lengths()
963963
for (auto& flex_item : flex_line.items) {
964964
flex_item->main_size = flex_item->target_main_size;
965965
}
966+
967+
flex_line.remaining_free_space = calculate_free_space();
966968
}
967969
}
968970

0 commit comments

Comments
 (0)