Skip to content

Commit

Permalink
save preserveAspectRatio attr from original svg to symbol in sprite
Browse files Browse the repository at this point in the history
  • Loading branch information
fr-ench committed Jun 7, 2016
1 parent b45c393 commit fdf74ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/svg-document.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ SVGDocument.prototype.toString = function (format) {
var symbolAttrs = [];

// preserve following attributes
['viewBox', 'id', 'class'].forEach(function (attr) {
['viewBox', 'id', 'class', 'preserveAspectRatio'].forEach(function (attr) {
var attrValue = $svg.attr(attr);
attrValue && symbolAttrs.push(attr + '="' + attrValue +'"');
});
Expand Down

0 comments on commit fdf74ae

Please sign in to comment.