mirror of
https://github.com/ONLYOFFICE/sdkjs.git
synced 2026-04-07 14:09:12 +08:00
Fix offsets
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user