Details
-
Bug
-
Resolution: Fixed
-
Major
-
4.1.1
-
None
-
None
Description
In the tree configuration, one can define icons to be displayed with context menu items (ContextMenuItem.setIcon()). If you provide the path to a PNG file (say "/.resources/icons/16/my_icon.png"), the following will happen:
- First, the icon is displayed with the menu item.
- Once the menu item is deactivated by a javascript condition, it tries to display a file called "my_icon_inactive.gif", a GIF, not a PNG
- Now when the menu item is activated again, the active icon is gone too, because the menu tries to display "my_icon.gif" now, also a GIF
So the JS handling the icon does not look at the file extensions. The context menu icons therefore only really work with GIFs.
Checklists
Acceptance criteria