File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ function PlaceholderType(props) {
31
31
const years = range ( 1990 , getYear ( new Date ( ) ) + 16 , 1 ) ;
32
32
const height = props . posHeight ( props . pos , props . isSignYourself ) ;
33
33
const fontSize =
34
- ( props . pos . options ?. fontSize || ( height > 14 ? 12 : height / 2 ) ) + "px" ;
34
+ ( props . pos . options ?. fontSize || ( height ? height - 4 : 12 ) ) + "px" ;
35
35
const fontColor = props . pos . options ?. fontColor || "black" ;
36
36
const months = [
37
37
"January" ,
Original file line number Diff line number Diff line change @@ -1290,7 +1290,7 @@ const calculateFontSize = (
1290
1290
widgetHeight
1291
1291
) => {
1292
1292
const font =
1293
- position ?. options ?. fontSize || widgetHeight > 14 ? 12 : widgetHeight / 2 ;
1293
+ position ?. options ?. fontSize || ( widgetHeight ? widgetHeight / 2 : 12 ) ;
1294
1294
if ( ! signyourself && position ?. isMobile && position ?. scale ) {
1295
1295
return font / position ?. scale / containerScale ;
1296
1296
} else {
@@ -1487,7 +1487,7 @@ export const multiSignEmbed = async (
1487
1487
position ,
1488
1488
containerScale ,
1489
1489
signyourself ,
1490
- widgetHeight
1490
+ position . Height
1491
1491
) ;
1492
1492
parseInt ( fontSize ) ;
1493
1493
let textContent ;
@@ -1662,7 +1662,7 @@ export const multiSignEmbed = async (
1662
1662
} ) ;
1663
1663
}
1664
1664
const pdfBytes = await pdfDoc . saveAsBase64 ( { useObjectStreams : false } ) ;
1665
- // console.log("pdf", pdfBytes);
1665
+ //console.log("pdf", pdfBytes);
1666
1666
return pdfBytes ;
1667
1667
} ;
1668
1668
You can’t perform that action at this time.
0 commit comments