1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-21 15:48:06 +02:00

Let print canvas height scale proportionally

This commit is contained in:
Tobias Schneider 2016-03-21 14:20:54 -07:00
parent aeabd0db20
commit 708895ffba

View file

@ -532,7 +532,6 @@ var PDFPageView = (function PDFPageViewClosure() {
// The rendered size of the canvas, relative to the size of canvasWrapper.
canvas.style.width = (PRINT_OUTPUT_SCALE * 100) + '%';
canvas.style.height = (PRINT_OUTPUT_SCALE * 100) + '%';
var cssScale = 'scale(' + (1 / PRINT_OUTPUT_SCALE) + ', ' +
(1 / PRINT_OUTPUT_SCALE) + ')';