react-pdf
react-pdf copied to clipboard
Unbreakable elements taller than the page don't correctly start on next page and wrap, as expected
Describe the bug
Based on https://github.com/diegomura/react-pdf/issues/874, and in particular https://github.com/diegomura/react-pdf/issues/874#issuecomment-815444437, I would expect a view set to wrap={false} to start at the top of the next page, and wrap from there, if it is taller than the page height.
To Reproduce Steps to reproduce the behavior including code snippet (if applies):
- Go to here
- Observe that
unbreakableis currently rendering on page 2. - Change
unbreakableheight from 400 to 800 - Observe that rather than being rendered on pages 2 and 3, it instead renders on page 1 and overflows off the bottom of the screen.
Expected behavior Unbreakable views that are too tall to fit on one page should start on the next page and wrap as described.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: MacOS
- Browser: Chrome
- React-pdf version: 2.0.19, 2.0.21