From 42cbe94af83cb39973c37772a4d53dbff4186ac4 Mon Sep 17 00:00:00 2001 From: RaktimaNXG Date: Thu, 1 Aug 2024 16:50:48 +0530 Subject: [PATCH] fix: initial type signature issue --- apps/OpenSign/src/components/pdf/SignPad.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/OpenSign/src/components/pdf/SignPad.js b/apps/OpenSign/src/components/pdf/SignPad.js index 815448e4a..21bc746fb 100644 --- a/apps/OpenSign/src/components/pdf/SignPad.js +++ b/apps/OpenSign/src/components/pdf/SignPad.js @@ -215,7 +215,7 @@ function SignPad({ : fontSelect ? fontSelect : "Fasthand"; - const fontSizeValue = isInitial ? "60px" : "40px"; + const fontSizeValue = isInitial ? "20px" : "40px"; //creating span for getting text content width const span = document.createElement("span"); span.textContent = textContent; @@ -229,7 +229,7 @@ function SignPad({ // Draw the text content on the canvas const ctx = canvasElement.getContext("2d"); const pixelRatio = window.devicePixelRatio || 1; - const addExtraWidth = isInitial ? 20 : 50; + const addExtraWidth = isInitial ? 10 : 50; const width = span.offsetWidth + addExtraWidth; const height = span.offsetHeight; setTextWidth(width);