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