You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm attempting to make the page content fill up the entirety of the last page of the document so the border of outer-container will be at the bottom of the last page instead of where the content ends. For some reason, it seems that the left and right borders always run to the bottom of the page on all pages except the last and completely ignores my page margins:
I ran into this problem when upgrading from v60.2 because my original implementation only renders the first page on v61.0 and nothing else. I think my original implementation was kind of a hack because I was applying CSS to the html element, but here it is for reference:
html {
height:100%;
}
body {
height:100%;
}
Which produced this on v60.2:
The last page of the document of my v61.0 implementation looks just like the above image so maybe page margins are only being applied against the entirely of the document instead of individual pages?
The text was updated successfully, but these errors were encountered:
I'm attempting to make the page content fill up the entirety of the last page of the document so the border of outer-container will be at the bottom of the last page instead of where the content ends.
You won’t be able to do this by setting height: 100%, because contrary to what’s done in browser, the size of the body is not the size of the page. If you force the different elements (html, body, …) to have height: 100%, the height of your flex container will be the height of one page.
But there’s a bug for sure about the size and the borders: even without height: 100% the flexbox reaches the end of the last page, and the borders overlap the page margins. Let’s fix that at least.
I'm using WeasyPrint 61.0 and I have a page structure like this:
I'm attempting to make the page content fill up the entirety of the last page of the document so the border of
outer-container
will be at the bottom of the last page instead of where the content ends. For some reason, it seems that the left and right borders always run to the bottom of the page on all pages except the last and completely ignores my page margins:I ran into this problem when upgrading from v60.2 because my original implementation only renders the first page on v61.0 and nothing else. I think my original implementation was kind of a hack because I was applying CSS to the
html
element, but here it is for reference:Which produced this on v60.2:
The last page of the document of my v61.0 implementation looks just like the above image so maybe page margins are only being applied against the entirely of the document instead of individual pages?
The text was updated successfully, but these errors were encountered: