Fix offsets

This commit is contained in:
Oleg Korshul
2025-07-23 22:39:23 +03:00
parent 06119a3e53
commit 32c1042e29
2 changed files with 26 additions and 9 deletions

View File

@ -2090,6 +2090,13 @@
h += (offsets.H - b);
}
if (y > offsets.H)
y = offsets.H - h;
if (y < offsets.editorY)
y = offsets.editorY;
if (x < offsets.editorX)
x = offsets.editorX;
variation["size"] = [w, h];
variation["positionX"] = x;
variation["positionY"] = y;