From 624616169725ca82744d7a5a52e13ca9d895a97a Mon Sep 17 00:00:00 2001 From: Timur Ercan Date: Tue, 7 Mar 2023 16:35:45 +0100 Subject: [PATCH] =?UTF-8?q?create=20field=20position=20fix=20=F0=9F=90=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/features/editor/createField.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/features/editor/createField.ts b/packages/features/editor/createField.ts index 5f9158a85..f97c57bf6 100644 --- a/packages/features/editor/createField.ts +++ b/packages/features/editor/createField.ts @@ -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;