Skip to content

Commit 0ff2e57

Browse files
fix: text widgets issue in mobile view
1 parent 5679668 commit 0ff2e57

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

apps/OpenSign/src/components/pdf/Placeholder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ function Placeholder(props) {
834834
)}
835835
{isTabAndMobile ? (
836836
<div
837-
className="flex items-stretch"
837+
className="flex items-stretch justify-center"
838838
style={{
839839
left: xPos(props.pos, props.isSignYourself),
840840
top: yPos(props.pos, props.isSignYourself),

apps/OpenSign/src/pages/PlaceHolderSign.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,8 +491,10 @@ function PlaceHolderSign() {
491491
let dropData = [];
492492
let placeHolder;
493493
const dragTypeValue = item?.text ? item.text : monitor.type;
494-
const widgetWidth = defaultWidthHeight(dragTypeValue).width;
495-
const widgetHeight = defaultWidthHeight(dragTypeValue).height;
494+
const widgetWidth =
495+
defaultWidthHeight(dragTypeValue).width * containerScale;
496+
const widgetHeight =
497+
defaultWidthHeight(dragTypeValue).height * containerScale;
496498
//adding and updating drop position in array when user drop signature button in div
497499
if (item === "onclick") {
498500
const divHeight = divRef.current.getBoundingClientRect().height;

0 commit comments

Comments
 (0)