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,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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user