Hangs when unbreakable component larger than page
See original GitHub issueDescribe the bug
When a component e.g. View
is set to unbreakable via wrap={false}
, and it is also taller than a single page, then rendering seems to go into an infinite loop.
To Reproduce Steps to reproduce the behavior including code snippet (if applies):
- Go to https://react-pdf.org/repl?example=disable-wrapping
- Change the
unbreakable
style height from400
to900
- Notice the blank preview
Expected behavior
I think in the case where a component can’t fit on a single page and has wrap={false}
, it should wrap as that is better than just failing.
Desktop (please complete the following information):
- OS: Linux
- Browser: Chromium, Firefox
- React-pdf version: latest (REPL) - v1.5.6
Issue Analytics
- State:
- Created 4 years ago
- Reactions:8
- Comments:25 (11 by maintainers)
Top Results From Across the Web
Bashmaster
Bashmaster, also referred to as Bashmaster, the Unbreakable, is the fifth and penultimate boss in Donkey Kong Country: Tropical Freeze and ...
Read more >Film / Unbreakable
Unbreakable is a 2000 Psychological Thriller Drama that is also a ... for villains heads to be larger than average. especially to evoke...
Read more >Unbreakable, Part III: Visual style - Montages
Watching Unbreakable feels like participating in a ritual where these ... Shyamalan's “rejection movements” are part of a larger system.
Read more >If water is contained in an unbreakable container with no ...
If water is contained in an unbreakable container with no room to expand, would it freeze at freezing temperatures? Can one prevent water...
Read more >Unbreakable Enterprise Kernel Release Notes for ...
3.1 KVM guests with less than 4 GB of memory might fail to auto reserve crash kernel memory · 3.2 btrfs, ext4 and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
No worries @diegomura. The work you’re doing on this project is awesome! I’ve been able to work around this in the mean time!
Yep. Agreed! This is currently a limitation of the breaking algorithm. I’ll try to fix it soon. Thanks!