mirror of
https://github.com/nadrad/h-m-m.git
synced 2024-06-09 04:02:11 +02:00
fix spacing issue with hidden nodes
This commit is contained in:
parent
5d2faa4a36
commit
86a9b3dda6
2
h-m-m
2
h-m-m
|
@ -673,7 +673,7 @@ function calculate_h(&$mm)
|
||||||
|
|
||||||
foreach ($mm['nodes'] as $id=>$node)
|
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['nodes'][$id]['h']
|
||||||
= $mm['line_spacing']
|
= $mm['line_spacing']
|
||||||
|
|
Loading…
Reference in a new issue