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:
Jonas Jenwald 2022-08-16 13:02:46 +02:00
parent 518115fddc
commit f669e5dd34

View File

@ -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) {