mirror of
https://github.com/typst/typst
synced 2025-05-17 02:25:27 +08:00
Fix a grid constraint
This commit is contained in:
parent
5677766715
commit
bcde4a3e51
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user