mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +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();
|
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…
Add table
Add a link
Reference in a new issue