mirror of
https://github.com/typst/typst
synced 2025-05-16 18:15:29 +08:00
fix measuring range
that was stupid. fixes header which never fits.
This commit is contained in:
parent
3361b3714d
commit
9331ae8e4b
@ -434,7 +434,7 @@ impl<'a> GridLayouter<'a> {
|
||||
// in the header will be precisely the rows in the header.
|
||||
self.simulate_unbreakable_row_group(
|
||||
header.start,
|
||||
Some(header.end),
|
||||
Some(header.end - header.start),
|
||||
regions,
|
||||
engine,
|
||||
disambiguator,
|
||||
@ -519,7 +519,7 @@ impl<'a> GridLayouter<'a> {
|
||||
// in the footer will be precisely the rows in the footer.
|
||||
self.simulate_unbreakable_row_group(
|
||||
footer.start,
|
||||
Some(self.grid.rows.len() - footer.start),
|
||||
Some(footer.end - footer.start),
|
||||
regions,
|
||||
engine,
|
||||
disambiguator,
|
||||
|
Loading…
x
Reference in New Issue
Block a user