Fix a grid constraint

This commit is contained in:
Martin Haug 2021-11-27 15:05:26 +01:00
parent 5677766715
commit bcde4a3e51

View File

@ -552,10 +552,11 @@ impl<'a> GridLayouter<'a> {
let mut size = self.used; let mut size = self.used;
if !self.fr.is_zero() && self.full.is_finite() { if !self.fr.is_zero() && self.full.is_finite() {
size.h = self.full; size.h = self.full;
self.cts.exact.y = Some(self.full);
} else {
self.cts.min.y = Some(size.h);
} }
self.cts.min.y = Some(size.h);
// The frame for the region. // The frame for the region.
let mut output = Frame::new(size, size.h); let mut output = Frame::new(size, size.h);
let mut pos = Point::zero(); let mut pos = Point::zero();