Min-height causes page break

Having trouble installing Oxygen PDF Chemistry? Got a bug to report? Post it all here.
jhanna
Posts: 19
Joined: Mon Aug 17, 2020 6:29 pm

Min-height causes page break

Post by jhanna »

Hello,

I am trying to apply a minimum height to a topic element, using the following css:

Code: Select all

@page {
    padding-top:0em;
    padding-bottom:0em;
    size: us-letter;    
    margin: 1in;
}

.topic {
    border: 1px solid red;
    margin: 0;
    min-height: 2in;
}
Here is the result (showing pages 1 and 2):
min-height.png
min-height.png (79.05 KiB) Viewed 936 times
As you can see, there is plenty of room on the first page for "Topic 4," yet it gets pushed to the second page. I do not run into the problem if I use "height" instead of "min-height":
height.png
height.png (100.35 KiB) Viewed 936 times
Is this just a bug with min-height or am I doing something wrong?

Thanks,
Jonathan
julien_lacour
Posts: 303
Joined: Wed Oct 16, 2019 3:47 pm

Re: Min-height causes page break

Post by julien_lacour »

Hello Jonathan,

Is it possible for you to send this sample and its full CSS customization by mail at support@oxygenxml.com?
I will try to test on my side and see if I reproduce the problem.

Regards,
Julien
Post Reply