fix: text widgets issue in mobile view

This commit is contained in:
RaktimaNXG
2024-11-07 15:37:56 +05:30
parent 567966866c
commit 0ff2e57424
2 changed files with 5 additions and 3 deletions
@@ -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),
+4 -2
View File
@@ -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 div
if (item === "onclick") {
const divHeight = divRef.current.getBoundingClientRect().height;