mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
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
1 changed files with 9 additions and 0 deletions
|
@ -1763,6 +1763,15 @@ html[dir="rtl"] #documentPropertiesOverlay .row > * {
|
|||
max-height: 100%;
|
||||
page-break-after: always;
|
||||
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 img {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue