coma / gulp-svg-icons

Inserting SVG icons was never so easy.
MIT License
24 stars 3 forks source link

viewbox issue #4

Open Spica2 opened 10 years ago

Spica2 commented 10 years ago

I run into some viewbox problems. Symbols get a viewbox. But the svg without a viewbox renders at its parents dimensions. So, if the symbols viewbox is smaller, you get margins.

I think, the svg replacement should have a viewbox. Typing it manualy breaks the replacement. Best would be a optional generated viewbox with same dimensions.

coma commented 10 years ago

Could you give me an example of your desired behaviour?