Mercurial > gemma
changeset 3917:be0deb139518
available_fairwaydepth: hotfix for margins
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Thu, 11 Jul 2019 14:43:30 +0200 |
parents | c76bbd27f89c |
children | 1e837d86bead |
files | client/src/components/fairway/AvailableFairwayDepth.vue |
diffstat | 1 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/fairway/AvailableFairwayDepth.vue Thu Jul 11 14:14:48 2019 +0200 +++ b/client/src/components/fairway/AvailableFairwayDepth.vue Thu Jul 11 14:43:30 2019 +0200 @@ -243,9 +243,9 @@ } }, methods: { - getDimensions({ svgHeight, svgWidth }) { - const mainMargin = { top: 0, right: 20, bottom: 75, left: 200 }; - const navMargin = { + getDimensions({ svgHeight, svgWidth, main, nav }) { + const mainMargin = main || { top: 0, right: 20, bottom: 75, left: 200 }; + const navMargin = nav || { top: svgHeight - mainMargin.top - 65, right: 20, bottom: 30, @@ -303,7 +303,8 @@ element: offScreen, dimensions: this.getDimensions({ svgWidth: svgWidth, - svgHeight: svgHeight + svgHeight: svgHeight, + main: { top: 0, right: 20, bottom: 45, left: 20 } }) }); var svg = offScreen.querySelector("svg");