Merge pull request #15325 from Snuffleupagus/issue-15324
Ignoring "resize" events during printing (issue 15324)
This commit is contained in:
commit
b05010c3eb
@ -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…
Reference in New Issue
Block a user