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
@ -2514,7 +2514,12 @@ function webViewerSpreadModeChanged(evt) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function webViewerResize() {
|
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();
|
pdfViewer.updateContainerHeightCss();
|
||||||
|
|
||||||
if (!pdfDocument) {
|
if (!pdfDocument) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user