mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Ignoring "resize" events during printing (issue 15324)
This is a quick work-around, to prevent the viewer from breaking as a result of https://bugzilla.mozilla.org/show_bug.cgi?id=774398
This commit is contained in:
parent
518115fddc
commit
f669e5dd34
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