fixed styling for collapsed items without hidden nodes

This commit is contained in:
nadrad 2023-03-19 08:55:57 +01:00
parent c447c06223
commit a95bed5d34

4
h-m-m
View file

@ -787,9 +787,9 @@ function draw_connections(&$mm, $id)
// if the node is collapsed
if ($node['collapsed'] ?? false)
if ( ($node['collapsed'] ?? false) && ($num_children > 0) )
{
if ($num_visible_children > 0)
if ($num_visible_children == $num_children)
mmput
(
$mm