You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// If the child is already at the top of the page, breaking won't improve its presence
// (as long as react-pdf does not support breaking into differently sized containers)
const breakingImprovesPresence = child.box.top > child.box.marginTop;
This doesn't take into account padding at the top of the page or fixed elements that will always appear before the node, so shouldBreak will return true even though the node is already as high up the page as it can go.
Describe the bug
Some layouts loop when calling splitPage; all the nodes are transferred to the next page.
To Reproduce
Apologies for the layout, it's reverse engineered from a customer's PDF that showed the problem.
This snippet will hang the renderer
Expected behavior
ReactPDF.render() completes
Screenshots
N/A
Desktop (please complete the following information):
@react-pdf/renderer v4.0.0 on Node 20 (also hangs the REPL).
The text was updated successfully, but these errors were encountered: