From 5a692b2c33f07151228f3744dc98bcfcff266a63 Mon Sep 17 00:00:00 2001 From: Calixte Denizet Date: Thu, 13 Jul 2023 20:36:16 +0200 Subject: [PATCH] [Editor] Resize the image when the page is zoomed In order to reproduce the issue: - scale down the image - zoom the page and the image is pixellated So this patch allow to redraw the image when zooming. --- src/display/editor/stamp.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/display/editor/stamp.js b/src/display/editor/stamp.js index c1ef08c5e..19be57827 100644 --- a/src/display/editor/stamp.js +++ b/src/display/editor/stamp.js @@ -251,13 +251,6 @@ class StampEditor extends AnnotationEditor { */ #setDimensions(width, height) { const [parentWidth, parentHeight] = this.parentDimensions; - if ( - Math.abs(width - this.width * parentWidth) < 1 && - Math.abs(height - this.height * parentHeight) < 1 - ) { - return; - } - this.width = width / parentWidth; this.height = height / parentHeight; this.setDims(width, height);