RadioPeirasmos / spriteme

Automatically exported from code.google.com/p/spriteme
0 stars 0 forks source link

spriting logic: add to top or bottom, left or right #12

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In some cases, we could squeeze one or two more images onto a sprite. For
example, imagine a bg image that is "repeat-x left top", and the image is
10px high, but the containing block is 100px high. SpriteMe won't add this
with other repeat-x images, because it would request 90px of padding below
it (too much).

But, you don't need the 90px of padding if you put this image at the bottom
of the vertically-stacked sprite. Need logic for these cases.

Original issue reported on code.google.com by stevesou...@gmail.com on 1 Sep 2009 at 5:57