Do not use width and height as width and height percentages in the outer SVG element

Height and width are solely used to define the SVGs ratio and should not cause side effects on the SVGs size in the site context.
This commit is contained in:
Matthias Jentsch 2014-08-28 16:37:21 +02:00
parent a9eec0d672
commit 98809a1447

View File

@ -127,8 +127,8 @@ class SVGRenderer
$svg = $this->document->createElement('svg');
$svg->setAttribute('xmlns', 'http://www.w3.org/2000/svg');
$svg->setAttribute('xmlns:xlink', 'http://www.w3.org/1999/xlink');
$svg->setAttribute('width', $this->width . '%');
$svg->setAttribute('height', $this->height . '%');
$svg->setAttribute('width', '100%');
$svg->setAttribute('height', '100%');
$svg->setAttribute(
'viewBox',
sprintf(