summaryrefslogtreecommitdiff
path: root/src/library/placed.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-11-29 12:06:38 +0100
committerLaurenz <laurmaedje@gmail.com>2021-11-29 12:06:38 +0100
commite36b8ed374423816876273f30b77eee38cb8b74c (patch)
tree0fc976a6bc91c56926d4c9af1ce05cb0e0556a3e /src/library/placed.rs
parent50bd8634711507ead8491d8d0c2abad0481e6a83 (diff)
Layout bugfixes
Diffstat (limited to 'src/library/placed.rs')
-rw-r--r--src/library/placed.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/library/placed.rs b/src/library/placed.rs
index 1ae51530..722e0035 100644
--- a/src/library/placed.rs
+++ b/src/library/placed.rs
@@ -43,7 +43,8 @@ impl Layout for PlacedNode {
// The pod is the base area of the region because for absolute
// placement we don't really care about the already used area (current).
let pod = {
- let expand = if out_of_flow { Spec::splat(true) } else { regions.expand };
+ let finite = regions.base.map(Length::is_finite);
+ let expand = finite & (regions.expand | out_of_flow);
Regions::one(regions.base, regions.base, expand)
};