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

Subgraph direction not respected when nodes are connected outside subgraph #4738

Closed
jason-curtis opened this issue Aug 16, 2023 · 1 comment
Labels
roadmap items to add to roadmap for auto workflow Status: Triage Needs to be verified, categorized, etc

Comments

@jason-curtis
Copy link
Contributor

Describe the bug
Subgraphs are supposed to have their own directionality when you use a direction XY directive. However, when nodes within that subgraph are connected with nodes outside of that subgraph, the subgraph directionality is ignored.

To Reproduce
Link to Live Editor

Open live editor and uncomment the last line.

everything is OK:
image

and then it's not
image

Expected behavior
"left-right" subgraph should stay in left-right orientation

Actual Behavior
"left-right" subgraph is forced into top-down orientation

Desktop (please complete the following information):

  • OS: Windows
  • Browser Chrome
  • Version 115.0.5790.171
@sidharthv96 sidharthv96 transferred this issue from mermaid-js/mermaid-live-editor Aug 16, 2023
@github-actions github-actions bot added the Status: Triage Needs to be verified, categorized, etc label Aug 16, 2023
@Yokozuna59
Copy link
Member

deplucate of #2509

@Yokozuna59 Yokozuna59 added the roadmap items to add to roadmap for auto workflow label Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
roadmap items to add to roadmap for auto workflow Status: Triage Needs to be verified, categorized, etc
Projects
None yet
Development

No branches or pull requests

2 participants