Let print canvas height scale proportionally
This commit is contained in:
parent
aeabd0db20
commit
708895ffba
@ -532,7 +532,6 @@ var PDFPageView = (function PDFPageViewClosure() {
|
|||||||
|
|
||||||
// The rendered size of the canvas, relative to the size of canvasWrapper.
|
// The rendered size of the canvas, relative to the size of canvasWrapper.
|
||||||
canvas.style.width = (PRINT_OUTPUT_SCALE * 100) + '%';
|
canvas.style.width = (PRINT_OUTPUT_SCALE * 100) + '%';
|
||||||
canvas.style.height = (PRINT_OUTPUT_SCALE * 100) + '%';
|
|
||||||
|
|
||||||
var cssScale = 'scale(' + (1 / PRINT_OUTPUT_SCALE) + ', ' +
|
var cssScale = 'scale(' + (1 / PRINT_OUTPUT_SCALE) + ', ' +
|
||||||
(1 / PRINT_OUTPUT_SCALE) + ')';
|
(1 / PRINT_OUTPUT_SCALE) + ')';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user