Skip to content

Commit

Permalink
fix: sv size when downloading is a small square (DHIS2-15178)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinkrulltott authored Apr 24, 2023
1 parent 61b2f62 commit 245d799
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/visualizations/config/generators/dhis/singleValue.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 245d799

Please sign in to comment.