move height resets to finish region internal

This commit is contained in:
PgBiel 2025-05-21 00:42:40 -03:00
parent 5f663a8da4
commit db2ac385a9

View File

@ -1747,11 +1747,6 @@ impl<'a> GridLayouter<'a> {
);
if !last {
self.current.repeated_header_rows = 0;
self.current.last_repeated_header_end = 0;
self.current.repeating_header_height = Abs::zero();
self.current.repeating_header_heights.clear();
let disambiguator = self.finished.len();
if let Some(footer) =
self.grid.footer.as_ref().and_then(Repeatable::as_repeated)
@ -1795,6 +1790,11 @@ impl<'a> GridLayouter<'a> {
self.current.could_progress_at_top = self.regions.may_progress();
self.current.repeated_header_rows = 0;
self.current.last_repeated_header_end = 0;
self.current.repeating_header_height = Abs::zero();
self.current.repeating_header_heights.clear();
if !self.grid.headers.is_empty() {
self.finished_header_rows.push(header_row_info);
}