[Editor] Ensure an ink editor has the minimal required size after having been pasted
This commit is contained in:
parent
0079ce4ad0
commit
63361dcfc7
@ -1034,8 +1034,8 @@ class InkEditor extends AnnotationEditor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const bbox = editor.#getBbox();
|
const bbox = editor.#getBbox();
|
||||||
editor.#baseWidth = bbox[2] - bbox[0];
|
editor.#baseWidth = Math.max(RESIZER_SIZE, bbox[2] - bbox[0]);
|
||||||
editor.#baseHeight = bbox[3] - bbox[1];
|
editor.#baseHeight = Math.max(RESIZER_SIZE, bbox[3] - bbox[1]);
|
||||||
editor.#setScaleFactor(width, height);
|
editor.#setScaleFactor(width, height);
|
||||||
|
|
||||||
return editor;
|
return editor;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user