mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Merge pull request #15298 from calixteman/ink_min_size
[Editor] Ensure an ink editor has the minimal required size after having been pasted
This commit is contained in:
commit
cef2ac99e5
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue