Skip to content

Commit 612f097

Browse files
committed
Fix - correctly expand item
1 parent 037c4b2 commit 612f097

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

modules/gui/HierarchyPainter.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2890,8 +2890,9 @@ class HierarchyPainter extends BasePainter {
28902890
if ((hitem._more === false) || (!hitem._parent && hitem._childs))
28912891
return;
28922892

2893-
if (hitem._childs && hitem._isopen) {
2894-
hitem._isopen = false;
2893+
// for the file expand always just toggle isopen flag
2894+
if (hitem._childs && (hitem._isopen || hitem._file)) {
2895+
hitem._isopen = !hitem._isopen;
28952896
if (!silent)
28962897
this.updateTreeNode(hitem, d3cont);
28972898
return;

0 commit comments

Comments
 (0)