Forum How do I...?

Hidden overflow text will cause new page

Aefan
Hi,

i have an page, 100mm x 100mm with an div in 50mm x 50mm with text in it.
the text could be longer than i can show in my div so i want to hide the text when it's to long.
"overflow: hidden" will do that in the browser as i want.

but in prince the overflow text will hide, but if the overflowed text is longer than my page, it will cause a new empty page or many pages, if text is longer. the page aren't really empty because CTRL+A will mark my hidden overflowed text in my PDF. so it is not really "gone", just invisible.

is there a way to fix this problem?

i've tried prince 9 and 10 rev 2 with the same result.

thx
mikeday
We may be able to fix this issue in a future release of Prince. Can you attach a sample HTML document that demonstrates the problem?
Aefan
I've attached my test markup and an screenshot with the comparison browser vs. PDF (first and second page).
  1. 02-07-_2015_12-31-58.png20.3 kB
    Browser vs. generated PDF
  2. markup.html2.8 kB
    HTML Markup + CSS

Edited by Aefan

joelmeador
Would love to see this addressed. Seen it a couple times in DocRaptor and it's very unexpected. I think the workaround for now is to set a max-height on the node that contains the overflowed text. Which, not always a reasonable thing, but it seems to work well enough.