🔥 The free & Open Source DocuSign alternative
JavaScript digital-signaturedocument-signingdocusign-alternativedocusign-freee-signatureelectronic-signatureelectronic-signaturesesignesignaturehacktoberfestjavascriptlegaltechmongodbnodejsopen-sourcepdf-signpdf-signaturereactjsself-hostedsign-pdf-files
fix: text widgets issue in mobile view
RaktimaNXG0ff2e57424ce
diff --git a/apps/OpenSign/src/components/pdf/Placeholder.js b/apps/OpenSign/src/components/pdf/Placeholder.jsindex 31909ff2a..30ca1f529 100644--- a/apps/OpenSign/src/components/pdf/Placeholder.js+++ b/apps/OpenSign/src/components/pdf/Placeholder.js@@ -834,7 +834,7 @@ function Placeholder(props) {)}{isTabAndMobile ? (<div- className="flex items-stretch"+ className="flex items-stretch justify-center"style={{left: xPos(props.pos, props.isSignYourself),top: yPos(props.pos, props.isSignYourself),diff --git a/apps/OpenSign/src/pages/PlaceHolderSign.js b/apps/OpenSign/src/pages/PlaceHolderSign.jsindex 5d1256054..135f37d05 100644--- a/apps/OpenSign/src/pages/PlaceHolderSign.js+++ b/apps/OpenSign/src/pages/PlaceHolderSign.js@@ -491,8 +491,10 @@ function PlaceHolderSign() {let dropData = [];let placeHolder;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;//adding and updating drop position in array when user drop signature button in divif (item === "onclick") {const divHeight = divRef.current.getBoundingClientRect().height;