diff options
author | Andreas Kling <kling@serenityos.org> | 2022-07-13 23:23:56 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-07-15 14:11:19 +0200 |
commit | 0636e1db61bb24bebef333307f1f30787ea0cce5 (patch) | |
tree | a848469594c723425419c58b5189735385121876 /Userland/Libraries/LibWeb/Layout | |
parent | 15c290461f1b041892d4c37108a46eef8c56f76e (diff) | |
download | serenity-0636e1db61bb24bebef333307f1f30787ea0cce5.zip |
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.
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout')
-rw-r--r-- | Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp index fe55632e82..02f92d94c6 100644 --- a/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp +++ b/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp @@ -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(); } } |