[GENERIC viewer] Fix printing regression from PR 13411

I missed this during review, since some of the changes in `web/pdf_print_service.js` broke printing.

Also, as part of these changes the patch replaces what looks like unnecessary `setAttribute` usage with "regular" `className` assignment and finally updates a couple of the CSS-rules to be more consistent.
This commit is contained in:
Jonas Jenwald 2021-06-02 21:37:49 +02:00
parent f2ade671ec
commit daf8461489
4 changed files with 7 additions and 9 deletions

View file

@ -34,7 +34,7 @@ function composePage(
canvas.height = Math.floor(size.height * PRINT_UNITS);
const canvasWrapper = document.createElement("div");
canvasWrapper.setAttribute("class", "printedPage");
canvasWrapper.className = "printedPage";
canvasWrapper.appendChild(canvas);
printContainer.appendChild(canvasWrapper);