Add width and height attributes to svg for correct rendering in IE 10

If this values are missing from svg, the image is rendered very small.

Bug: T131842
Change-Id: I5ba750e577d09dd6e5119e287c3a34a85ec750f6
This commit is contained in:
Santhosh Thottingal
2016-05-02 11:06:41 +05:30
parent 897d4f7f72
commit 0022983fae

View File

@@ -1 +1 @@
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 19l.8-3h5.3l.9 3h2.2l-4.2-13h-3l-4.2 13h2.2zm3.5-11l2 6h-4l2-6z" fill="#707070"/><path d="M5 4l.938 1.906h-4.938v2.094h1.594c.6 1.8 1.406 3.206 2.406 4.406-1.1.7-4.313 1.781-4.313 1.781l1.313 1.813s3.487-1.387 4.688-2.188c1 .7 2.319 1.188 3.719 1.688l.594-2c-1-.3-1.988-.688-2.688-1.188 1.1-1.1 1.9-2.506 2.5-4.406h2.188l.5-2h-5.563l-.938-1.906h-2zm-.188 4h3.781c-.4 1.3-.906 2-1.906 3-1.1-1-1.475-1.7-1.875-3z" fill="#707070"/></svg> <?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24"><path d="M13 19l.8-3h5.3l.9 3h2.2l-4.2-13h-3l-4.2 13h2.2zm3.5-11l2 6h-4l2-6z" fill="#707070"/><path d="M5 4l.938 1.906h-4.938v2.094h1.594c.6 1.8 1.406 3.206 2.406 4.406-1.1.7-4.313 1.781-4.313 1.781l1.313 1.813s3.487-1.387 4.688-2.188c1 .7 2.319 1.188 3.719 1.688l.594-2c-1-.3-1.988-.688-2.688-1.188 1.1-1.1 1.9-2.506 2.5-4.406h2.188l.5-2h-5.563l-.938-1.906h-2zm-.188 4h3.781c-.4 1.3-.906 2-1.906 3-1.1-1-1.475-1.7-1.875-3z" fill="#707070"/></svg>

Before

Width:  |  Height:  |  Size: 546 B

After

Width:  |  Height:  |  Size: 569 B