Mercurial > gemma
changeset 3849:4a584a99bec9
hydrological_conditions: testwise work with fixed pixelratio for PDF-Export
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Mon, 08 Jul 2019 17:07:38 +0200 |
parents | 1f8a89954bc3 |
children | 0d0e52612c32 |
files | client/src/components/gauge/HydrologicalConditions.vue |
diffstat | 1 files changed, 5 insertions(+), 17 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/gauge/HydrologicalConditions.vue Mon Jul 08 17:00:54 2019 +0200 +++ b/client/src/components/gauge/HydrologicalConditions.vue Mon Jul 08 17:07:38 2019 +0200 @@ -256,23 +256,11 @@ y = offset.y; // check if there are tow diagrams on the screen // draw the diagram in a separated html element to get the full size - if ( - ["GAUGE_WATERLEVEL_HYDROLOGICALCONDITIONS"].indexOf(this.paneSetup) !== - -1 - ) { - this.containerId = "tmpContainer"; - // set width and height - document.querySelector("#tmpContainer").style.width = - document.querySelector("#hydrologicalconditions-diagram-container") - .clientWidth * - 2 + - document.querySelector("#diagramlegendId").clientWidth + - "px"; - document.querySelector("#tmpContainer").style.height = - document.querySelector("#hydrologicalconditions-diagram-container") - .clientHeight + "px"; - this.drawDiagram(); - } + this.containerId = "tmpContainer"; + // set width and height + document.querySelector("#tmpContainer").style.width = "1550px"; + document.querySelector("#tmpContainer").style.height = "400px"; + this.drawDiagram(); var svg = document .getElementById(this.containerId) .getElementsByTagName("svg")[0];