From 4017b5a9f67e06145129d75de452c8a42e2d2f5a Mon Sep 17 00:00:00 2001 From: Laurenz Date: Fri, 11 Jun 2021 14:42:20 +0200 Subject: Push some nodes directly into the stack --- src/layout/fixed.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/layout/fixed.rs') diff --git a/src/layout/fixed.rs b/src/layout/fixed.rs index 7c28e8e5..233c27f3 100644 --- a/src/layout/fixed.rs +++ b/src/layout/fixed.rs @@ -19,8 +19,8 @@ impl Layout for FixedNode { self.height.map_or(current.height, |h| h.resolve(base.height)), ); - let fixed = Spec::new(self.width.is_some(), self.height.is_some()); - let regions = Regions::one(size, fixed); + let expand = Spec::new(self.width.is_some(), self.height.is_some()); + let regions = Regions::one(size, expand); self.child.layout(ctx, ®ions) } } -- cgit v1.2.3