fix measuring range

that was stupid.

fixes header which never fits.
This commit is contained in:
PgBiel 2025-04-08 00:00:01 -03:00
parent 3361b3714d
commit 9331ae8e4b

View File

@ -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,