Merge pull request #13102 from emilio/print-small-page
print: RFC: Center when printing a PDF with smaller size than the output page.
This commit is contained in:
commit
dd3797a325
@ -1763,6 +1763,15 @@ html[dir="rtl"] #documentPropertiesOverlay .row > * {
|
|||||||
max-height: 100%;
|
max-height: 100%;
|
||||||
page-break-after: always;
|
page-break-after: always;
|
||||||
page-break-inside: avoid;
|
page-break-inside: avoid;
|
||||||
|
|
||||||
|
/* If we're smaller than the page, center the canvas horizontally and
|
||||||
|
* vertically */
|
||||||
|
min-height: 100%;
|
||||||
|
min-width: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
#printContainer canvas,
|
#printContainer canvas,
|
||||||
#printContainer img {
|
#printContainer img {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user