Skip to content

fix(paginate): fragment a box that overflows the page before a forced break - #1

Open
ndbroadbent wants to merge 2 commits into
mainfrom
fix/table-overflow-before-forced-break
Open

ndbroadbent wants to merge 2 commits into
mainfrom
fix/table-overflow-before-forced-break

Conversation

@ndbroadbent

Copy link
Copy Markdown
Member

Runs CI and the parity gate on this fork before proposing the fix upstream. Not for merging here.

@ndbroadbent
ndbroadbent force-pushed the fix/table-overflow-before-forced-break branch 2 times, most recently from 255b4ba to 2021e34 Compare October 24, 2026 06:26
…e end

A forced break inside a table cell splits the row, and the first fragment's
cells are stretched to fill the rest of the fragmentainer. The row's block
extent also starts with its internal spacing (on a first row, the table's top
border, padding and border-spacing), which the stretch didn't subtract, so the
fragment ran past the page end by that amount.

Subtract the row's internal start from the space before splitting the cells.
@ndbroadbent
ndbroadbent force-pushed the fix/table-overflow-before-forced-break branch from 2021e34 to d81c9c7 Compare October 24, 2026 07:30

This branch has not been deployed

No deployments
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.

1 participant