Fix insertion of blank pages during printing due to non-matching page sizes

This commit is contained in:
Tobias Schneider 2016-02-10 13:10:03 -08:00
parent 21ed8ff71d
commit aeabd0db20
3 changed files with 6 additions and 6 deletions

View file

@ -1166,10 +1166,6 @@ var PDFViewerApplication = {
// Firefox incorrectly reports support for the other value.
'@supports ((size:A4) and (size:1pt 1pt)) {' +
'@page { size: ' + pageSize.width + 'pt ' + pageSize.height + 'pt;}' +
// The canvas and each ancestor node must have a height of 100% to make
// sure that each canvas is printed on exactly one page.
'#printContainer {height:100%}' +
'#printContainer > div {width:100% !important;height:100% !important;}' +
'}';
body.appendChild(this.pageStyleSheet);