diff options
-rw-r--r-- | Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp index 99669b26aa..850e18c347 100644 --- a/Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp +++ b/Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp @@ -31,6 +31,9 @@ struct AvailableSpaceForLineInfo { static AvailableSpaceForLineInfo available_space_for_line(const InlineFormattingContext& context, size_t line_index) { + if (!context.parent()->is_block_formatting_context()) + return { 0, context.context_box().width() }; + AvailableSpaceForLineInfo info; // FIXME: This is a total hack guess since we don't actually know the final y position of lines here! |