pure-svg-code icon indicating copy to clipboard operation
pure-svg-code copied to clipboard

SVG viewBox property is missing

Open hbroer opened this issue 4 years ago • 0 comments

The viewBox property is missing on the svg element. Scaling (inline) svg results in a image which is cut off.

Line 798 qrcode/index.js

  var svg = '<?xml version="1.0" standalone="yes"?>' + '<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 ' + width + ' ' + height + '" width="' + width + '" height="' + height + '">';

I may do a pull request later if needed.

hbroer avatar Feb 27 '20 12:02 hbroer