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
Fragment viewbox off-center #162
Comments
@colepatrickturner Please provide the following resources as well:
Thanks! |
Here is the SASS sprite sheet that was created: and the final sprite: However the stylesheet is not relevant as I was using the #fragment method of embedding: |
@colepatrickturner Yeah, you posted the sprite earlier, and it looks good to me. I am not sure if browser support for fragment identifiers is mature enough in the meantime. I will have to test with your markup ... |
Majority support for I have a suspicion it has to do with the padding/margin around the sprites, because the viewBox coordinates are wrong - I know that the min-x coordinate of the viewBox for the fragment's view is 8px too far to the left. |
The problem I am experience is that my SVG fragments are not centered around the icons in the sprite, and will include surrounding sprites in the final file.
Here is my final SVG sprite:
http://pastebin.com/p0RdNy3M
When I try either the #create-hunt or #create-poll sprite, this is the result:
http://i.imgur.com/mi2k3CJ.png
I am wondering if there's a problem with my configuration, or the sprites that I am using, that would cause the viewbox values to display this way in both Chrome and Firefox.
Here are the configuration options I'm using:
Thanks!
The text was updated successfully, but these errors were encountered: