Fix out of flow check (#3533)

This commit is contained in:
Laurenz 2024-03-01 12:41:09 +01:00 committed by GitHub
parent 67ba8d6c0e
commit 1e2c239971
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -157,7 +157,8 @@ impl FlowItem {
match self { match self {
Self::Placed { float: false, .. } => true, Self::Placed { float: false, .. } => true,
Self::Frame { frame, .. } => { Self::Frame { frame, .. } => {
frame.items().all(|(_, item)| matches!(item, FrameItem::Meta(..))) frame.size().is_zero()
&& frame.items().all(|(_, item)| matches!(item, FrameItem::Meta(..)))
} }
_ => false, _ => false,
} }