Skip to content

Commit 40ed5e2

Browse files
Merge pull request #1443 from OpenSignLabs/raktima-patch-11
fix: resolve spacing issue for text-type widgets in mobile view using template flow
2 parents e5b120f + 2aa4c8c commit 40ed5e2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

apps/OpenSign/src/pages/TemplatePlaceholder.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,10 @@ const TemplatePlaceholder = () => {
369369
);
370370
const key = randomId();
371371
const dragTypeValue = item?.text ? item.text : monitor.type;
372-
const widgetWidth = defaultWidthHeight(dragTypeValue).width;
373-
const widgetHeight = defaultWidthHeight(dragTypeValue).height;
372+
const widgetWidth =
373+
defaultWidthHeight(dragTypeValue).width * containerScale;
374+
const widgetHeight =
375+
defaultWidthHeight(dragTypeValue).height * containerScale;
374376
let dropData = [],
375377
currentPagePosition;
376378
let placeHolder;

0 commit comments

Comments
 (0)