File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -380,8 +380,10 @@ const DraftTemplate = () => {
380
380
) ;
381
381
const key = randomId ( ) ;
382
382
const dragTypeValue = item ?. text ? item . text : monitor . type ;
383
- const widgetWidth = defaultWidthHeight ( dragTypeValue ) . width ;
384
- const widgetHeight = defaultWidthHeight ( dragTypeValue ) . height ;
383
+ const widgetWidth =
384
+ defaultWidthHeight ( dragTypeValue ) . width * containerScale ;
385
+ const widgetHeight =
386
+ defaultWidthHeight ( dragTypeValue ) . height * containerScale ;
385
387
let dropData = [ ] ,
386
388
currentPagePosition ;
387
389
let placeHolder ;
Original file line number Diff line number Diff line change @@ -1558,10 +1558,10 @@ function PdfRequestFiles(props) {
1558
1558
//`handlePublicUser` function to use create user from public role and create document from public template
1559
1559
const handlePublicUser = async ( e ) => {
1560
1560
e . preventDefault ( ) ;
1561
- setLoading ( true ) ;
1562
1561
if ( ! emailRegex . test ( contact . email ) ) {
1563
1562
alert ( "Please enter a valid email address." ) ;
1564
1563
} else {
1564
+ setLoading ( true ) ;
1565
1565
try {
1566
1566
const params = {
1567
1567
...contact ,
You can’t perform that action at this time.
0 commit comments