changeset 3250:246754028bf4

client: cleanup code (fairwayprofile diagram)
author Fadi Abbud <fadi.abbud@intevation.de>
date Mon, 13 May 2019 16:31:35 +0200
parents d91c1200dc6b
children b3333311de42
files client/src/components/fairway/Fairwayprofile.vue
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/fairway/Fairwayprofile.vue	Mon May 13 16:16:55 2019 +0200
+++ b/client/src/components/fairway/Fairwayprofile.vue	Mon May 13 16:31:35 2019 +0200
@@ -364,10 +364,10 @@
       }
       // landscape format is used for both a3,a4 papersize
       if (!width) {
-        width = this.form.paperSize === "a3" ? 380 : 290;
+        width = this.templateData.properties.paperSize === "a3" ? 380 : 290;
       }
       if (!height) {
-        height = this.form.paperSize === "a3" ? 130 : 100;
+        height = this.templateData.properties.paperSize === "a3" ? 130 : 100;
       }
       if (["topright", "bottomright"].indexOf(position) !== -1) {
         x = this.pdf.width - offset.x - width;