Page 1 of 1

Min-height causes page break

Posted: Tue Oct 20, 2020 7:50 pm
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 1702 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 1702 times
Is this just a bug with min-height or am I doing something wrong?

Thanks,
Jonathan

Re: Min-height causes page break

Posted: Thu Oct 22, 2020 3:51 pm
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