Skip to content

fix(paginate): repeat fixed children of a row on its continuation - #3583

Open
exoego wants to merge 1 commit into
diegomura:masterfrom
exoego:fix/paginate-row-repeat
Open

exoego wants to merge 1 commit into
diegomura:masterfrom
exoego:fix/paginate-row-repeat

Conversation

@exoego

@exoego exoego commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

With experimentalPagination, a fixed child of a row is not repeated when the row continues on the next page. The legacy engine repeats it.

<View style={{ flexDirection: 'row' }}>
  <View style={{ width: 60, alignSelf: 'flex-start' }} fixed>
    <Text>LABEL</Text>
  </View>
  <View style={{ flex: 1 }}>{/* content spanning several pages */}</View>
</View>

fit/row.ts only carried cells with leftovers into the continuation. It now also adds fresh copies of fully placed repeat cells, the same way a column does.

A fixed cell stretched to the row height still does not repeat, because its box itself continues past the cut. I left that out of this PR.

A fixed cell that fully placed was dropped from the row continuation,
so it did not repeat on the next page. The legacy engine repeats it.
@vercel

vercel Bot commented Oct 6, 2026

Copy link
Copy Markdown

@exoego is attempting to deploy a commit to the diegomura Team on Vercel.

A member of the Team first needs to authorize it.

@changeset-bot

changeset-bot Bot commented Oct 6, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 789cbbd

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages
Name Type
@react-pdf/paginate Patch
@react-pdf/layout Patch
@react-pdf/renderer Patch
@react-pdf/examples Patch
@react-pdf/math Patch
@react-pdf/mermaid Patch
@react-pdf/ui Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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