From 2aa4c8c36138cc23f4371884991097db0d96641e Mon Sep 17 00:00:00 2001 From: RaktimaNXG Date: Mon, 11 Nov 2024 15:50:17 +0530 Subject: [PATCH] fix: resolve spacing issue for text-type widgets in mobile view using template flow --- apps/OpenSign/src/pages/TemplatePlaceholder.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/OpenSign/src/pages/TemplatePlaceholder.js b/apps/OpenSign/src/pages/TemplatePlaceholder.js index 60b6aae9a..1d447c674 100644 --- a/apps/OpenSign/src/pages/TemplatePlaceholder.js +++ b/apps/OpenSign/src/pages/TemplatePlaceholder.js @@ -372,8 +372,10 @@ const TemplatePlaceholder = () => { ); const key = randomId(); const dragTypeValue = item?.text ? item.text : monitor.type; - const widgetWidth = defaultWidthHeight(dragTypeValue).width; - const widgetHeight = defaultWidthHeight(dragTypeValue).height; + const widgetWidth = + defaultWidthHeight(dragTypeValue).width * containerScale; + const widgetHeight = + defaultWidthHeight(dragTypeValue).height * containerScale; let dropData = [], currentPagePosition; let placeHolder;