Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fnimick opened this issue Jan 12, 2022 · 0 comments
Labels

Comments

@fnimick
Copy link

fnimick commented Jan 12, 2022

Describe the bug
Based on #874, and in particular #874 (comment), 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants