-
Notifications
You must be signed in to change notification settings - Fork 932
Description
- I have searched for existing issues that already reported this problem and found none
- The bug is present in REPL
Describe the bug
The nodeMinHeight configuration option is defined and documented but has no effect on the actual node rendering. This appears to be a regression as version 0.17.2 did not have this issue.
To Reproduce
set nodeMinHeight option in REPL
- Create a markmap with nodeMinHeight set to a value larger than the natural content height
- Observe that nodes are not sized to the minimum height
- The option has no visual effect
Expected behavior
When nodeMinHeight is set, nodes should have a minimum height of the specified value, even if their content would naturally render smaller.
Actual behavior
The nodeMinHeight option is completely ignored during layout calculations. Nodes are sized only based on their actual content dimensions, regardless of the nodeMinHeight setting.
Additional context
I have identified the issue in the crucial layout calculation code - layout() method. In the nodeSize function, only the actual measured size is used