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

background-size #20

Closed
kaukas opened this issue May 25, 2016 · 3 comments
Closed

background-size #20

kaukas opened this issue May 25, 2016 · 3 comments

Comments

@kaukas
Copy link

kaukas commented May 25, 2016

Hello.

Thank you for the nice helper to deal with sprites in Rails!

I am using "spritely" to compile sprite images for normal screens and now I need to do the same for the retina screens. For that I need to set the background-size property to half the dimensions of the whole compiled image as demonistrated on tutsplus. Do you know how I could get the dimensions of the compiled image?

Thank you!

@agrobbin
Copy link
Owner

Hi @kaukas! Sorry for slow response. Right now there is no built-in support for getting the compiled sprite's total dimensions in the released version of spritely. However, if you try out #21 and it works for you, I'll merge it and release v1.1.0.

@kaukas
Copy link
Author

kaukas commented Jun 9, 2016

I have to say I am impressed. The fix was quick and it works very well, at least in our situation. Thank you! Looking forward to the merge!

@agrobbin
Copy link
Owner

agrobbin commented Jun 9, 2016

@kaukas thanks! v1.1.0 has been released to RubyGems.

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

2 participants