Skip to content

Commit

Permalink
Merge pull request #15298 from calixteman/ink_min_size
Browse files Browse the repository at this point in the history
[Editor] Ensure an ink editor has the minimal required size after having been pasted
  • Loading branch information
calixteman authored Aug 10, 2022
2 parents 3eb11fa + 63361dc commit cef2ac9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/display/editor/ink.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cef2ac9

Please sign in to comment.