From 245d799d9513e0407e4a6b6ba24c3da15754618d Mon Sep 17 00:00:00 2001 From: Martin Date: Mon, 24 Apr 2023 11:11:13 +0200 Subject: [PATCH] fix: sv size when downloading is a small square (DHIS2-15178) --- src/visualizations/config/generators/dhis/singleValue.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/visualizations/config/generators/dhis/singleValue.js b/src/visualizations/config/generators/dhis/singleValue.js index a9c570ca6..669a046d0 100644 --- a/src/visualizations/config/generators/dhis/singleValue.js +++ b/src/visualizations/config/generators/dhis/singleValue.js @@ -173,8 +173,8 @@ const generateDVItem = ( const svg = document.createElementNS(svgNS, 'svg') svg.setAttribute('xmlns', svgNS) svg.setAttribute('viewBox', `0 0 ${width} ${height}`) - svg.setAttribute('width', '100%') - svg.setAttribute('height', '100%') + svg.setAttribute('width', width) + svg.setAttribute('height', height) svg.setAttribute('data-test', 'visualization-container') if (backgroundColor) {