mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 13:54:26 +02:00
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:
parent
a9eec0d672
commit
98809a1447
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user