Closed (fixed)
Project:
Menu Icons
Version:
6.x-2.2
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Apr 2010 at 03:56 UTC
Updated:
21 May 2010 at 00:20 UTC
Just as the title says, menu items that do not have a menu icon associated with them at all, still have the "Menu Icon" CSS class applied to them.
This presents a problem for me, because my sub-menu-items do not have menu icons on them, and the menu_icon class adds more spacing to compensate for the icons being there. So the sub-items with no icons on them are getting spaced out because they have an empty "menu_icon" CSS class attached to them.
Please check for an icon before adding the menu_icon CSS tags to the menu item's link.
Comments
Comment #1
SpikeX commentedFixed it myself.
menu_icons.module, line 133:
Replace line 133 with this:
This will fix the issue.
I can't make patch files (don't have the necessary software on Windows), so once you patch it into the project feel free to mark this as fixed. :)
Comment #2
skilip commentedCommitted to HEAD. Thanks!
Comment #3
SpikeX commentedNo problem. Glad I could help. :)