diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-09-10 14:29:11 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-09-10 15:10:34 +0200 |
| commit | b0b4607725d55cc99c13986e14294e0da3e56e08 (patch) | |
| tree | 26a4de1511ffcf8e0c36cfc371fae0eda6e82f01 /src/layout/stack.rs | |
| parent | 50a464488cc811d7ec9ed2b2c8b1e8a580510e20 (diff) | |
Set the correct base for grid cells
Diffstat (limited to 'src/layout/stack.rs')
| -rw-r--r-- | src/layout/stack.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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 }, ); |
