diff --git a/web/pdf_page_view.js b/web/pdf_page_view.js index f0725c94038c1..fdb768c28617f 100644 --- a/web/pdf_page_view.js +++ b/web/pdf_page_view.js @@ -929,6 +929,7 @@ class PDFPageView { this.hasRestrictedScaling = false; } } + this.currentCanvasWidth = width * outputScale.sx; const sfx = approximateFraction(outputScale.sx); const sfy = approximateFraction(outputScale.sy);