Closed (won't fix)
Project:
Sprite Graphic Menu
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Apr 2011 at 15:54 UTC
Updated:
13 Jun 2018 at 17:22 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
justafishHere's a patch for the install file also, no upgrade path from 6.x-1.1 yet though so you would need to disable and uninstall first
Comment #2
justafishAdds generic "spritemenu" class to all spritemenu menu item, patched against original file
Comment #3
justafishUpdated patches to allow removal of images to function correctly (patched against 6.x-1.1)
Still no upgrade path...
Comment #4
nfavrod commentedsubscribe
Comment #5
nfavrod commentedHello,
I can't patch the module cause of "clipboard" stuff. Is it normal that the first lines of the patch are:
--- spritemenu.module
+++ (clipboard)
Strange isn't it?
Thanks, I hope your work will be soon applied!!
+++nico
Comment #6
nfavrod commentedHello,
I still have on more question: as you specified differents CSS etc for visited, hover,. would it be complicated to put a different image for each kind?
Now, I did and image in witch half top is normal and half bottom is hover & active and I change the position.
Maybe I could help in the help when your patch will be OK!
Thanks
nico
Comment #7
justafishhi nfavrod,
A sprite should be one image that changes it's visible viewport to appear as different images, so I think this is out of scope for this module.
I've attached another patch that fixes the order of the menu states and also makes this module more compatible with other menu item altering modules (in particular http://drupal.org/project/menu_item_container )
Comment #8
aenw commentedYour work is really helpful, justafish. But when I use it, I don't see that the position or height are written out to the css file, and width is always written as 100%. Am I missing something? I assumed that they'd be written out in
_spritemenu_build_css().thanks,
aenw
Comment #9
justafishaenw, have you clicked the enabled checkbox and filled out the desired width and height of the sprite? (as opposed to leaving it on auto)
Comment #10
aenw commentedYup, did all that. When I debugged and stepped through the code, nowhere was the width or height written to $css (the output string in _spritemenu_build_css() ).
Comment #11
justafishaenw, yes it does...
Have you refreshed the menu page and cleared your cache?
Comment #12
bgilhome commentedI've updated the patch to add the following:
I think this is all good? Needs approval, bit of a quick fix.
Comment #13
quicksketchHey guys, it's been a while since this patch was filed. I'm helping maintain the module now and I'm interesting in seeing what this patch provides. Unfortunately it's going to need a reroll to work with #1188714: Drupal 7 port of Sprite Graphic Menu, and the latest patch is full of tabs and has a few code styling issues. Anyone still interested in a reroll?
Comment #14
justafish