Mercurial > gemma
changeset 3150:38d9edce3331
client: fix width and height for pdf-template (waterlevel)
author | Fadi Abbud <fadi.abbud@intevation.de> |
---|---|
date | Fri, 03 May 2019 13:19:54 +0200 |
parents | a90091aaef67 |
children | 47453337c698 |
files | client/src/components/gauge/Waterlevel.vue |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/gauge/Waterlevel.vue Fri May 03 12:55:16 2019 +0200 +++ b/client/src/components/gauge/Waterlevel.vue Fri May 03 13:19:54 2019 +0200 @@ -204,6 +204,8 @@ yDiagram = this.form.paperSize === "a3" ? 60 : 50, widthDiagram = this.form.paperSize === "a3" ? 380 : 290, heightDiagram = this.form.paperSize === "a3" ? 130 : 100; + this.pdf.width = this.form.paperSize === "a3" ? 420 : 297; + this.pdf.height = this.form.paperSize === "a3" ? 297 : 210; this.pdf.doc.addImage( imgData, "PNG",