Skip to content

[BUG] nodeMinHeight option is not applied in layout calculations #331

@obgnail

Description

@obgnail
  • 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

  1. Create a markmap with nodeMinHeight set to a value larger than the natural content height
  2. Observe that nodes are not sized to the minimum height
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions