From 44a7ab6b82a6198f59c206e2e17b8f934f708af0 Mon Sep 17 00:00:00 2001 From: nadrad Date: Wed, 12 Apr 2023 11:09:46 +0200 Subject: [PATCH] fixed small vertical spacing issue --- h-m-m | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/h-m-m b/h-m-m index 8fb923f..29a0568 100755 --- a/h-m-m +++ b/h-m-m @@ -661,7 +661,7 @@ function calculate_h(&$mm) foreach ($mm['nodes'] as $id=>$node) - if ($node['visible_children']==0 || ($node['collapsed'] ?? false)) + if ($node['is_leaf'] || $node['visible_children']==0 || ($node['collapsed'] ?? false)) $mm['nodes'][$id]['h'] = $mm['line_spacing'] @@ -692,8 +692,6 @@ function calculate_h(&$mm) , $node['lh'] + $mm['line_spacing'] ) - + ($mm['nodes'][$id]['parent'] == $mm['root_id']) - * $mm['line_spacing']; ; } }