Skip to content

🔥 The free & Open Source DocuSign alternative

fix: resolve spacing issue for text-type widgets in mobile view using template flow

RaktimaNXG2aa4c8c36138
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;