Skip to content

Commit 696969d

Browse files
committed
Expose not rounded canvas width
1 parent 1668993 commit 696969d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

web/pdf_page_view.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1118,6 +1118,8 @@ class PDFPageView extends BasePDFPageView {
11181118
const { outputScale } = this;
11191119
this.#hasRestrictedScaling = this.#needsRestrictedScaling;
11201120

1121+
this.currentCanvasWidth = width * outputScale.sx;
1122+
11211123
const sfx = approximateFraction(outputScale.sx);
11221124
const sfy = approximateFraction(outputScale.sy);
11231125

0 commit comments

Comments
 (0)