Some content disappears after preview
Using PagedJS 0.3.5 and Chromium 103, parts of content are sometimes missing when content cannot fit in a page, but no warning or indication is available. I've added a custom OverflowHandler (in js/handlers.js in the attached zip below) that can detect this in some cases. I need a reliable way of telling that content cannot fit in the page, ideally using exceptions, but even the OverflowContentError is silenced. There are also situations where PagedJS gets stuck in an endless loop of adding new pages trying to fit content - my OverflowHandler tries to prevent this in a really stupid way.
The missing content is the "Probability" table (the middle one) on the screen preview:
When I switch to print preview or print a PDF, the Probability table disappears silently:
It can be found in DevTools though, but finding it corrupts the pages suddenly:
I prepared an adapted print-a-webpage that can easily reproduce the problem: missing-content.zip
Changing the page size to A3 landscape in style-print.css makes it render everything OK.