mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
Merge pull request #15325 from Snuffleupagus/issue-15324
Ignoring "resize" events during printing (issue 15324)
This commit is contained in:
commit
b05010c3eb
1 changed files with 6 additions and 1 deletions
|
@ -2514,7 +2514,12 @@ function webViewerSpreadModeChanged(evt) {
|
|||
}
|
||||
|
||||
function webViewerResize() {
|
||||
const { pdfDocument, pdfViewer } = PDFViewerApplication;
|
||||
const { pdfDocument, pdfViewer, pdfRenderingQueue } = PDFViewerApplication;
|
||||
|
||||
if (pdfRenderingQueue.printing && window.matchMedia("print").matches) {
|
||||
// Work-around issue 15324 by ignoring "resize" events during printing.
|
||||
return;
|
||||
}
|
||||
pdfViewer.updateContainerHeightCss();
|
||||
|
||||
if (!pdfDocument) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue