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, }