Merge pull request #16690 from calixteman/stamp_resize
[Editor] Resize the image when the page is zoomed
This commit is contained in:
commit
ee373b313b
@ -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