[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:
parent
36fc34ebe8
commit
5a692b2c33
@ -251,13 +251,6 @@ class StampEditor extends AnnotationEditor {
|
|||||||
*/
|
*/
|
||||||
#setDimensions(width, height) {
|
#setDimensions(width, height) {
|
||||||
const [parentWidth, parentHeight] = this.parentDimensions;
|
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.width = width / parentWidth;
|
||||||
this.height = height / parentHeight;
|
this.height = height / parentHeight;
|
||||||
this.setDims(width, height);
|
this.setDims(width, height);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user