Skip to content

Commit

Permalink
Merge pull request #15 from ChrissiQ/no-px
Browse files Browse the repository at this point in the history
Remove 'px' from height/width attributes.
  • Loading branch information
stevie-mayhew authored May 16, 2019
2 parents 3c032eb + 8bf0752 commit 9460531
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/SVGTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,11 @@ private function process($filePath)
}

if ($this->width) {
$root->setAttribute('width', $this->width . 'px');
$root->setAttribute('width', $this->width);
}

if ($this->height) {
$root->setAttribute('height', $this->height . 'px');
$root->setAttribute('height', $this->height);
}

if ($this->extra_classes) {
Expand Down

0 comments on commit 9460531

Please sign in to comment.