fix: image resize placeholder location issue in mobile to mobile and desktop to desktop view

This commit is contained in:
RaktimaNXG
2023-12-06 16:37:59 +05:30
parent dd536dc7d0
commit dec13e8b5f
6 changed files with 95 additions and 476 deletions
@@ -476,8 +476,10 @@ function SignYourSelf() {
pngUrl,
pdfDoc,
pdfOriginalWidth,
true
true,
containerWH
);
signPdfFun(pdfBytes, documentId);
}
setIsSignPad(false);
@@ -536,14 +538,13 @@ function SignYourSelf() {
})
.then((Listdata) => {
const json = Listdata.data;
// console.log("json ", json);
setPdfUrl(json.result.data);
if (json.result.data) {
getDocumentDetails(false);
}
})
.catch((err) => {
// this.setState({ loading: false });
console.log("axois err ", err);
});
};
@@ -825,7 +826,7 @@ function SignYourSelf() {
) : noData ? (
<Nodata />
) : (
<div className="signatureContainer">
<div className="signatureContainer" ref={divRef}>
{/* this component used for UI interaction and show their functionality */}
{pdfLoadFail && !checkTourStatus && (
<Tour
@@ -940,7 +941,7 @@ function SignYourSelf() {
setIsEmail={setIsEmail}
/>
<div data-tut="reactourSecond" ref={divRef}>
<div data-tut="reactourSecond">
{containerWH && (
<RenderPdf
pageNumber={pageNumber}