mirror of
https://github.com/typst/typst
synced 2025-05-17 02:25:27 +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.
|
// in the header will be precisely the rows in the header.
|
||||||
self.simulate_unbreakable_row_group(
|
self.simulate_unbreakable_row_group(
|
||||||
header.start,
|
header.start,
|
||||||
Some(header.end),
|
Some(header.end - header.start),
|
||||||
regions,
|
regions,
|
||||||
engine,
|
engine,
|
||||||
disambiguator,
|
disambiguator,
|
||||||
@ -519,7 +519,7 @@ impl<'a> GridLayouter<'a> {
|
|||||||
// in the footer will be precisely the rows in the footer.
|
// in the footer will be precisely the rows in the footer.
|
||||||
self.simulate_unbreakable_row_group(
|
self.simulate_unbreakable_row_group(
|
||||||
footer.start,
|
footer.start,
|
||||||
Some(self.grid.rows.len() - footer.start),
|
Some(footer.end - footer.start),
|
||||||
regions,
|
regions,
|
||||||
engine,
|
engine,
|
||||||
disambiguator,
|
disambiguator,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user