changeset 3921:a8039561130e

fairwayprofile: hotfix layout
author Thomas Junk <thomas.junk@intevation.de>
date Thu, 11 Jul 2019 15:43:33 +0200
parents e3e17396f09a
children 32b656e77e2f
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	Thu Jul 11 15:33:22 2019 +0200
+++ b/client/src/components/fairway/Fairwayprofile.vue	Thu Jul 11 15:43:33 2019 +0200
@@ -377,8 +377,8 @@
       this.renderTo({
         element: offScreen,
         dimensions: {
-          svgWidth: svgWidth,
-          svgHeight: svgHeight
+          svgWidth: svgWidth - this.margin.right - this.margin.left,
+          svgHeight: svgHeight - this.margin.top - this.margin.bottom
         }
       });
       var svg = offScreen.querySelector("svg");