mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 06:42:32 -05:00
clamp area box
This commit is contained in:
1 parent
5bddce8969
commit
41604008d1
2 files changed
+19
-20
No files matched your search
@@ -2512,6 +2512,11 @@ export default {
|
||||
|
||||
this.selectedAreasRef.value = [area]
|
||||
|
||||
area.x = Math.min(Math.max(area.x, 0), 1)
|
||||
area.y = Math.min(Math.max(area.y, 0), 1)
|
||||
area.w = Math.min(Math.max(area.w, 0), 1)
|
||||
area.h = Math.min(Math.max(area.h, 0), 1)
|
||||
|
||||
this.save()
|
||||
} else {
|
||||
const documentRef = this.documentRefs.find((e) => e.document.uuid === area.attachment_uuid)
|
||||
|
||||
Reference in new issue
Block a user