From b0b4607725d55cc99c13986e14294e0da3e56e08 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Fri, 10 Sep 2021 14:29:11 +0200 Subject: Set the correct base for grid cells --- src/layout/stack.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/layout/stack.rs') diff --git a/src/layout/stack.rs b/src/layout/stack.rs index d31012f0..211c8a7e 100644 --- a/src/layout/stack.rs +++ b/src/layout/stack.rs @@ -178,14 +178,14 @@ impl<'a> StackLayouter<'a> { self.constraints.exact.x = Some(self.full.w); self.full.w } else { - self.constraints.min.x = Some(used.w); + self.constraints.min.x = Some(used.w.min(self.full.w)); used.w }, if expand.y { self.constraints.exact.y = Some(self.full.h); self.full.h } else { - self.constraints.min.y = Some(used.h); + self.constraints.min.y = Some(used.h.min(self.full.h)); used.h }, ); -- cgit v1.2.3