From 1e2c239971a940463179a93e0383f39204e4f95d Mon Sep 17 00:00:00 2001 From: Laurenz Date: Fri, 1 Mar 2024 12:41:09 +0100 Subject: [PATCH] Fix out of flow check (#3533) --- crates/typst/src/layout/flow.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/typst/src/layout/flow.rs b/crates/typst/src/layout/flow.rs index 5023ec244..bd693bd86 100644 --- a/crates/typst/src/layout/flow.rs +++ b/crates/typst/src/layout/flow.rs @@ -157,7 +157,8 @@ impl FlowItem { match self { Self::Placed { float: false, .. } => true, Self::Frame { frame, .. } => { - frame.items().all(|(_, item)| matches!(item, FrameItem::Meta(..))) + frame.size().is_zero() + && frame.items().all(|(_, item)| matches!(item, FrameItem::Meta(..))) } _ => false, }