Skip to content

Commit c9ea88e

Browse files
committed
Correctly set item icon after click
1 parent 1af032c commit c9ea88e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/JSRootPainter.jquery.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,11 @@
347347

348348
// better search for images again, but not store them extra
349349
var img1 = "", img2 = "", has_childs = ('_childs' in hitem);
350+
var handle = JSROOT.getDrawHandle(hitem._kind);
351+
if (handle!=null) {
352+
if ('icon' in handle) img1 = handle.icon;
353+
if ('icon2' in handle) img2 = handle.icon2;
354+
}
350355
if ('_icon' in hitem) img1 = hitem['_icon'];
351356
if ('_icon2' in hitem) img2 = hitem['_icon2'];
352357
if (img2.length==0) img2 = img1;

0 commit comments

Comments
 (0)