From 9331ae8e4be2b11e6482e7048027703a507d63cd Mon Sep 17 00:00:00 2001 From: PgBiel <9021226+PgBiel@users.noreply.github.com> Date: Tue, 8 Apr 2025 00:00:01 -0300 Subject: [PATCH] fix measuring range that was stupid. fixes header which never fits. --- crates/typst-layout/src/grid/repeated.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/typst-layout/src/grid/repeated.rs b/crates/typst-layout/src/grid/repeated.rs index 4c21a545b..82d83efa7 100644 --- a/crates/typst-layout/src/grid/repeated.rs +++ b/crates/typst-layout/src/grid/repeated.rs @@ -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,