react-pdf icon indicating copy to clipboard operation
react-pdf copied to clipboard

Unbreakable elements taller than the page don't correctly start on next page and wrap, as expected

Open fnimick opened this issue 4 years ago • 0 comments

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):

  1. Go to here
  2. Observe that unbreakable is currently rendering on page 2.
  3. Change unbreakable height from 400 to 800
  4. 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

fnimick avatar Jan 12 '22 23:01 fnimick