[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.
This commit is contained in:
Calixte Denizet 2023-07-13 20:36:16 +02:00
parent 36fc34ebe8
commit 5a692b2c33

View File

@ -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);