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
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
Is this just a bug with min-height or am I doing something wrong?

Thanks,
Jonathan
You do not have the required permissions to view the files attached to this post.
julien_lacour
Posts: 667
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