From 10e0153018a03899eddf09e5d09a382c15d764bc Mon Sep 17 00:00:00 2001 From: RaktimaNXG Date: Thu, 1 Aug 2024 17:56:44 +0530 Subject: [PATCH] fix: initial type signature bulry issue --- apps/OpenSign/src/components/pdf/SignPad.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/OpenSign/src/components/pdf/SignPad.js b/apps/OpenSign/src/components/pdf/SignPad.js index 21bc746fb..e362ca23f 100644 --- a/apps/OpenSign/src/components/pdf/SignPad.js +++ b/apps/OpenSign/src/components/pdf/SignPad.js @@ -101,8 +101,8 @@ function SignPad({ onSaveSign( null, false, - textWidth > 150 ? 150 : textWidth, - textHeight > 35 ? 35 : textHeight + !isInitial && textWidth > 150 ? 150 : textWidth, + !isInitial && textHeight > 35 ? 35 : textHeight ); } else { setIsSignImg(""); @@ -215,7 +215,7 @@ function SignPad({ : fontSelect ? fontSelect : "Fasthand"; - const fontSizeValue = isInitial ? "20px" : "40px"; + const fontSizeValue = "40px"; //creating span for getting text content width const span = document.createElement("span"); span.textContent = textContent;