d3-mitch-tree icon indicating copy to clipboard operation
d3-mitch-tree copied to clipboard

Bug: vertical and horizontal spacing is not respected if orientation is 'topToBottom'

Open lauritziu opened this issue 4 years ago • 1 comments

Note: for support questions, please use stackoverflow. This repository's issues are reserved for feature requests and bug reports.

  • I'm submitting a ...

    • [ x] bug report
  • What is the current behavior?

If I specify the vertical and horizontal spacing this way:

var treePlugin = new d3.mitchTree.boxedTree()
    ...
    .getNodeSettings()
        .setSizingMode('nodesize')
        .setVerticalSpacing(100)				
        .setHorizontalSpacing(50)
        .back()
    .initialize();

it works nice if the orientation is the default 'leftToRight'. If I change it to 'topToBottom' it is not respected at all. That is a big drawback for my use case.

  • What is the expected behavior? Values for the spacing and margin should be respected in each orientation.

  • Please tell us about your environment:

    • Version: 1.1.2
    • Browser: [Chrome | Safari]
    • OS: Mac Catalina 10.15.4

lauritziu avatar Apr 21 '20 10:04 lauritziu

Do you have a tip, how I could fix this Problem maybe?

altmandian avatar Apr 06 '22 06:04 altmandian