Skip to content

Commit 5146d72

Browse files
authored
Merge pull request #67 from LasseRafn/fix-51
IE11 support by adding viewBox
2 parents 1a6487a + a0af29c commit 5146d72

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/InitialAvatar.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,7 @@ protected function makeSvgAvatar()
683683
// Original document
684684
$image = new SVG($this->getWidth(), $this->getHeight());
685685
$document = $image->getDocument();
686+
$document->setAttribute('viewBox', "0 0 {$this->getWidth()} {$this->getHeight()}");
686687

687688
// Background
688689
if ($this->getRounded()) {

0 commit comments

Comments
 (0)