My favorites | Sign in
Project Home Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 50: Only sprites if elements are visible
3 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


 
Reported by codedr...@gmail.com, Sep 15, 2009
What steps will reproduce the problem?
1. Go to
http://svg-edit.googlecode.com/svn-history/r646/trunk/editor/svg-editor.html
2. Click the SpriteMe bookmarklet.

What is the expected output? What do you see instead?
SpriteMe should offer to sprite the align buttons.  But because these
elements are not visible, SpriteMe does not suggest that.

However, if you do the following:

1. Go to
http://svg-edit.googlecode.com/svn-history/r646/trunk/editor/svg-editor.html
2. Draw two ellipses
3. Drag-Select both ellipse
4. Click the SpriteMe bookmarklet

SpriteMe will offer to generate a sprite for the align images.

SpriteMe should analyze all images, even if the images are not displayed.
Sep 16, 2009
#1 damianha...@gmail.com
+1 on this for me. In my case it is a drop down menu with many images (icons) that
would work well as sprites.
Sep 16, 2009
#2 codedr...@gmail.com
I see now why this happens: 

https://code.google.com/p/spriteme/source/browse/trunk/spriteme.js#1459
https://code.google.com/p/spriteme/source/browse/trunk/spriteme.js#1367

Seems like you're using the element's width/height to determine the image dimensions,
which makes sense.
Jul 12, 2010
#3 jbrown...@gmail.com
I'm assuming this is the same issue as dynamic css images (hover for example) not showing?  IMHO, this is critical to being useful.

Powered by Google Project Hosting