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

composite state label covers children #5966

Open
adamfk opened this issue Oct 15, 2024 · 0 comments
Open

composite state label covers children #5966

adamfk opened this issue Oct 15, 2024 · 0 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@adamfk
Copy link

adamfk commented Oct 15, 2024

Description

When a composite state label spans multiple lines, it often overlaps its nested states as shown below.

state "ACTIVE\nenter / setup();\nexit / teardown();" as ACTIVE {
<snip...>

image

stateDiagram
SLEEPING : SLEEPING

state "ACTIVE\nenter / setup();\nexit / teardown();" as ACTIVE {
    [*] --> SEARCH

    SEARCH : SEARCH
    CHARGE : CHARGE
}

[*] --> SLEEPING
SLEEPING --> ACTIVE : EV_SEARCH
ACTIVE --> SLEEPING : EV_SLEEP

SEARCH --> CHARGE : EV_CHARGE
CHARGE --> SEARCH : EV_SEARCH
Loading

If this layout issue could be fixed, we could close #5522

Steps to reproduce

See above

Screenshots

No response

Code Sample

No response

Setup

  • Mermaid version: 11.3.0
  • Browser and Version: Chrome 129.0.6668.100

Suggested Solutions

No response

Additional Context

No response

@adamfk adamfk added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

No branches or pull requests

1 participant