From 86a9b3dda644a6b57dde251b0ce21313f1756c8b Mon Sep 17 00:00:00 2001 From: nadrad Date: Sun, 19 Mar 2023 15:46:11 +0100 Subject: [PATCH] fix spacing issue with hidden nodes --- h-m-m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/h-m-m b/h-m-m index 4e365b4..d6435a8 100755 --- a/h-m-m +++ b/h-m-m @@ -673,7 +673,7 @@ function calculate_h(&$mm) foreach ($mm['nodes'] as $id=>$node) - if ($node['is_leaf'] || ($node['collapsed'] ?? false)) + if ($node['visible_children']==0 || ($node['collapsed'] ?? false)) $mm['nodes'][$id]['h'] = $mm['line_spacing']