mirror of
https://github.com/documenso/documenso
synced 2026-05-24 09:28:27 +00:00
create field position fix 🐛
This commit is contained in:
parent
96c6a592f4
commit
6246161697
1 changed files with 1 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ export const createField = (
|
|||
customText = ""
|
||||
): any => {
|
||||
var rect = e.target.getBoundingClientRect();
|
||||
const fieldSize = { width: 192, height: 96 };
|
||||
const fieldSize = { width: 192, height: 64 };
|
||||
var newFieldX = e.clientX - rect.left - fieldSize.width / 2; //x position within the element.
|
||||
var newFieldY = e.clientY - rect.top - fieldSize.height / 2; //y position within the element.
|
||||
if (newFieldX < 0) newFieldX = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue