Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default icon height don't work #37

Open
fremail opened this issue Jul 24, 2017 · 0 comments
Open

Default icon height don't work #37

fremail opened this issue Jul 24, 2017 · 0 comments

Comments

@fremail
Copy link

fremail commented Jul 24, 2017

I put 5 SVG icons with different dimensions (2 icons 19x19 and 3 icons 19x14) and set default icon width and height to 19px and padding to 2px.

In the end of process I got a sprite with original icons sizes (some of them are white):
icons

Maybe my original SVG files cause the problem - I don't know. I'll put several of them here:

19x19 icon:
<?xml version="1.0"?><svg xmlns="http://www.w3.org/2000/svg" width="19" height="19" viewBox="0 0 25 25"><svg id="loader" data-name="Layer 1" height="25" width="25" viewBox="0 0 25 25" y="0"><title>spinnerArtboard 1</title><path d="m11.62 21.46a9 9 0 0 1 -8.12 -9.22 9.1 9.1 0 0 1 8.75 -8.74 9 9 0 0 1 9.21 8.12 1 1 0 0 0 1 0.88h1.54a1 1 0 0 0 1 -1.11 12.5 12.5 0 1 0 -13.61 13.61 1 1 0 0 0 1.11 -1v-1.55a1 1 0 0 0 -0.88 -0.99z" fill="#999"/></svg></svg>

19x14 icon:

<!-- Generator: Adobe Illustrator 17.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
	<!ENTITY ns_flows "http://ns.adobe.com/Flows/1.0/">
	<!ENTITY ns_extend "http://ns.adobe.com/Extensibility/1.0/">
	<!ENTITY ns_ai "http://ns.adobe.com/AdobeIllustrator/10.0/">
	<!ENTITY ns_graphs "http://ns.adobe.com/Graphs/1.0/">
]>
<svg version="1.1" xmlns:x="&ns_extend;" xmlns:i="&ns_ai;" xmlns:graph="&ns_graphs;"
	 xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
	 x="0px" y="0px" width="18.839px" height="13.724px" viewBox="0 0 18.839 13.724" enable-background="new 0 0 18.839 13.724"
	 xml:space="preserve">
<g id="Layer_8">
	<g>
		<g>
			<path fill="#999999" d="M16.485,1.428c-0.181-0.166-0.474-0.165-0.654,0c-0.181,0.166-0.181,0.434,0,0.6
				c2.778,2.549,2.778,6.697,0,9.246c-0.181,0.166-0.181,0.435,0,0.6c0.181,0.166,0.473,0.166,0.654,0
				C19.624,8.994,19.624,4.308,16.485,1.428z M13.541,3.529c-0.181,0.166-0.181,0.435,0,0.6c1.515,1.39,1.515,3.653,0,5.043
				c-0.181,0.166-0.181,0.435,0,0.601c0.181,0.166,0.474,0.166,0.655,0c1.876-1.722,1.876-4.523,0-6.244
				C14.014,3.363,13.722,3.363,13.541,3.529z"/>
		</g>
		<path fill-rule="evenodd" clip-rule="evenodd" fill="#999999" d="M9.704,0.043c-0.129-0.066-0.284-0.055-0.402,0.03L3.454,4.272
			H0.387C0.173,4.272,0,4.446,0,4.66v4.405c0,0.214,0.173,0.388,0.387,0.388h3.067l5.847,4.199c0.067,0.048,0.146,0.073,0.226,0.073
			c0.06,0,0.121-0.014,0.177-0.043c0.129-0.066,0.21-0.2,0.21-0.345V0.388C9.914,0.242,9.833,0.109,9.704,0.043z"/>
	</g>
</g>
</svg>```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant