ZaiZai 1 éve
szülő
commit
341130afc6
1 módosított fájl, 3 hozzáadás és 3 törlés
  1. 3 3
      src/plugins/HcPdfSign.js

+ 3 - 3
src/plugins/HcPdfSign.js

@@ -150,15 +150,15 @@ export default class HcPdfSign {
     static async signImage(url) {
         const res = await this.getImageSize(url)
         if (res.width === res.height) {
-            this.signImgCss = { url: url, width: 140, height: 140 }
+            this.signImgCss = { url: url, width: 170, height: 170 }
         } else if (res.width > res.height) {
             const scaleFactor = 30 / res.height
             const newWidth = res.width * scaleFactor
             this.signImgCss = { url: url, width: newWidth, height: 30 }
         } else {
-            const scaleFactor = 100 / res.height
+            const scaleFactor = 170 / res.height
             const newWidth = res.width * scaleFactor
-            this.signImgCss = { url: url, width: newWidth, height: 100 }
+            this.signImgCss = { url: url, width: newWidth, height: 170 }
         }
     }