diff options
author | Andreas Kling <kling@serenityos.org> | 2022-11-09 12:03:49 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-11-09 15:48:08 +0100 |
commit | 5e996b461cf0279285f65b3662b3b9755f42dcdd (patch) | |
tree | 459a0054b6349b90c927e0432b4b2a21c8713ddc /Userland | |
parent | 098216fad74b5be00714772bef2f34b3c005ceaf (diff) | |
download | serenity-5e996b461cf0279285f65b3662b3b9755f42dcdd.zip |
LibWeb: Actually assign solved value for `left` in abspos width case 1
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibWeb/Layout/FormattingContext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/FormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/FormattingContext.cpp index ab16bdb856..621c244ead 100644 --- a/Userland/Libraries/LibWeb/Layout/FormattingContext.cpp +++ b/Userland/Libraries/LibWeb/Layout/FormattingContext.cpp @@ -595,7 +595,7 @@ void FormattingContext::compute_width_for_absolutely_positioned_non_replaced_ele // then the width is shrink-to-fit. Then solve for 'left' if (left.is_auto() && width.is_auto() && !right.is_auto()) { auto result = calculate_shrink_to_fit_widths(box); - solve_for_left(); + left = solve_for_left(); auto available_width = solve_for_width(); width = CSS::Length(min(max(result.preferred_minimum_width, available_width.to_px(box)), result.preferred_width), CSS::Length::Type::Px); } |