Skip to content

Commit a3936c6

Browse files
Merge pull request #1447 from OpenSignLabs/validation
fix: resolve spacing issue for text-type widgets in mobile view using draft template
2 parents 7424912 + d98453f commit a3936c6

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

apps/OpenSign/src/pages/DraftTemplate.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,8 +380,10 @@ const DraftTemplate = () => {
380380
);
381381
const key = randomId();
382382
const dragTypeValue = item?.text ? item.text : monitor.type;
383-
const widgetWidth = defaultWidthHeight(dragTypeValue).width;
384-
const widgetHeight = defaultWidthHeight(dragTypeValue).height;
383+
const widgetWidth =
384+
defaultWidthHeight(dragTypeValue).width * containerScale;
385+
const widgetHeight =
386+
defaultWidthHeight(dragTypeValue).height * containerScale;
385387
let dropData = [],
386388
currentPagePosition;
387389
let placeHolder;

apps/OpenSign/src/pages/PdfRequestFiles.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1558,10 +1558,10 @@ function PdfRequestFiles(props) {
15581558
//`handlePublicUser` function to use create user from public role and create document from public template
15591559
const handlePublicUser = async (e) => {
15601560
e.preventDefault();
1561-
setLoading(true);
15621561
if (!emailRegex.test(contact.email)) {
15631562
alert("Please enter a valid email address.");
15641563
} else {
1564+
setLoading(true);
15651565
try {
15661566
const params = {
15671567
...contact,

0 commit comments

Comments
 (0)