shakyShane / gulp-svg-sprites

Create SVG sprites or compile to <symbols>
MIT License
334 stars 45 forks source link

Output padded items offset the correct amount #49

Closed JodiWarren closed 10 years ago

JodiWarren commented 10 years ago

Apologies, I kind of screwed up in my last pull request. What I previously did was add extra height and width to the items size to account for the padding. This obviously made items bigger than they should be.

Now I've removed that and just offset the background position by the padding amount. This means that the item's size stays the same as the original image.