mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-09-13 05:07:39 +02:00
fix: horizontal pdf or large size pdf's scrollbar issue in signyourself and placeholder flow
This commit is contained in:
@@ -479,3 +479,10 @@ export const embedDocId = async (pdfDoc, documentId, allPages) => {
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
export const pdfNewWidthFun = (divRef) => {
|
||||
const clientWidth = divRef.current.offsetWidth;
|
||||
const pdfWidth = clientWidth - 160 - 200;
|
||||
//160 is width of left side, 200 is width of right side component
|
||||
return pdfWidth;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user