# HG changeset patch # User Fadi Abbud # Date 1562752858 -7200 # Node ID db24b43476042c9b75a3fadfbb37d3506fec52d0 # Parent 0b382767b5ab9c706d8e6a1885146d475002fd9c client: pdf-gen: fix bug of not rendering some elements on pdf(hydrologicalconditions) * svg2pdf stop rendering the next elements if widht,height attributes are missing in rect element. diff -r 0b382767b5ab -r db24b4347604 client/src/components/gauge/HydrologicalConditions.vue --- a/client/src/components/gauge/HydrologicalConditions.vue Wed Jul 10 11:55:06 2019 +0200 +++ b/client/src/components/gauge/HydrologicalConditions.vue Wed Jul 10 12:00:58 2019 +0200 @@ -551,7 +551,11 @@ svg .selectAll(".chart-tooltip rect") .attr("fill", "#fff") - .attr("stroke", "#ccc"); + .attr("stroke", "#ccc") + // set width,height attributes for rect element in case d3 does not + // generate them to let svg2pdf continue rendernig of the following elements + .attr("width", "0px") + .attr("height", "0px"); svg .selectAll(".chart-tooltip text") .attr("fill", "666")