[Editor] Ensure an ink editor has the minimal required size after having been pasted

This commit is contained in:
Calixte Denizet 2022-08-10 10:15:23 +02:00
parent 0079ce4ad0
commit 63361dcfc7

View File

@ -1034,8 +1034,8 @@ class InkEditor extends AnnotationEditor {
}
const bbox = editor.#getBbox();
editor.#baseWidth = bbox[2] - bbox[0];
editor.#baseHeight = bbox[3] - bbox[1];
editor.#baseWidth = Math.max(RESIZER_SIZE, bbox[2] - bbox[0]);
editor.#baseHeight = Math.max(RESIZER_SIZE, bbox[3] - bbox[1]);
editor.#setScaleFactor(width, height);
return editor;