Skip to content

Fix dontBreakRows rowSpan ending offset across pages #2932

Merged
liborm85 merged 2 commits intobpampuch:masterfrom
NadeemShadan:issue-2895-dontbreakrows-rowspan-last-row
Apr 12, 2026
Merged

Fix dontBreakRows rowSpan ending offset across pages #2932
liborm85 merged 2 commits intobpampuch:masterfrom
NadeemShadan:issue-2895-dontbreakrows-rowspan-last-row

Conversation

@NadeemShadan
Copy link
Copy Markdown
Contributor

Fixes #2895

Summary

When dontBreakRows is enabled and a rowSpan crosses pages, the row-span ending context could apply a negative Y discount. That moved the cursor too far down and created an oversized last row.

Changes

  • Track the page where a rowSpan starts.
  • Apply row-span discountY only when the start page matches the current page.
  • Clamp discountY to >= 0.
  • Add integration regression test:
  • keeps row heights stable when rowSpan crosses pages with dontBreakRows (#2895)

@liborm85 liborm85 merged commit db68a45 into bpampuch:master Apr 12, 2026
10 checks passed
@liborm85
Copy link
Copy Markdown
Collaborator

Merged. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rowSpan creates big row heights if it spans across a page

2 participants