Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setHorizontalSpacing not honored when setBodyBoxWidth also used #51

Open
1 of 3 tasks
meself001 opened this issue Sep 14, 2020 · 1 comment
Open
1 of 3 tasks

Comments

@meself001
Copy link

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

  • I'm submitting a ...

    • bug report
    • feature request
    • support request => Please do not submit support request here, see note at the top of this template.
  • Do you want to request a feature or report a bug?

Report a bug

  • What is the current behavior?

setHorizontalSpacing is not respected if setBodyBoxWidth is also used. It's only the latter that gets performed, whichever order they're called in (I'm using the default left-to-right orientation).

Just take any of the basic box examples bundled with the code release and ensure the following call for getNodeSettings:

.getNodeSettings()
          .setSizingMode('size')
          .setBodyBoxWidth(250)
          .setHorizontalSpacing(200)
          .back()
  • What is the expected behavior?

That both the box width and horizontal spacing between nodes adopt the above values.

  • What is the motivation / use case for changing the behavior?

The default box width is too small for my purpose, so I need to make the boxes wider. This results in the boxes starting to encroach on each other.

  • Please tell us about your environment:

    • Version: 1.1.2
    • Browser: all
    • Language: Javascript
@meself001
Copy link
Author

OK, so I can work around this by using setNodeDepthMultiplier, but surely using setHorizontalSpacing should be the correct way to go about this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant