Merge pull request #16690 from calixteman/stamp_resize

[Editor] Resize the image when the page is zoomed
This commit is contained in:
calixteman 2023-07-14 12:16:44 +02:00 committed by GitHub
commit ee373b313b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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