From 7bf3b40867be2c28343236d018cebe24f8544e87 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 18 Sep 2022 16:10:03 +0200 Subject: LibWeb: Remove bogus main space restriction in wrapping flex layouts --- Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'Userland/Libraries') diff --git a/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp index 2043ef29cf..f2b8ca9338 100644 --- a/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp +++ b/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp @@ -553,10 +553,6 @@ void FlexFormattingContext::determine_available_main_and_cross_space(bool& main_ if (!main_is_constrained) { auto available_main_size = containing_block_effective_main_size(flex_container()); main_available_space = available_main_size.value_or(NumericLimits::max()) - sum_of_margin_padding_border_in_main_axis(flex_container()); - if (flex_container().computed_values().flex_wrap() == CSS::FlexWrap::Wrap || flex_container().computed_values().flex_wrap() == CSS::FlexWrap::WrapReverse) { - main_available_space = specified_main_size(*flex_container().containing_block()); - main_is_constrained = true; - } } } -- cgit v1.2.3