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

autonumber on sequence diagram, drifts vertical alignment. #5693

Open
ZcuBa opened this issue Aug 6, 2024 · 0 comments
Open

autonumber on sequence diagram, drifts vertical alignment. #5693

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

Comments

@ZcuBa
Copy link

ZcuBa commented Aug 6, 2024

Description

When I use autonumber in a sequence diagram, the events accumulates a horizontal misalignment with the column it belongs to, so numbers and event arrows, are drifting as the sequence diagram grows.

Steps to reproduce

create a sequence diagram with autonumbering e.g.
you can do it in the live editor, if you d' like, I used v. 10.9.1

https://mermaid.live/edit#pako:eNqN0L0KwyAQB_BXkVubDEk2h0x9gEJXl6tePiBqa7yhhLx7DakUSih1OuXn_04X0N4QSJjpweQ0nUfsA1rlRFrI0Tu2Nwr7_lKJsmzbUyqkUO4bierN6szqn6zJrNlYbvC5eJD1T3xzMCwUYClYHE1667IBBXEgSwpSBhjqkKeoQLk10S3s-nQaZAxMBfDdYMxfA7LDaU6nwXM_7GR9AfSyXjU

sequenceDiagram
    autonumber
    P1 -->>+ P1: 

    autonumber 1
    P2 -->>+ P2: 

    autonumber 1
    P3 -->>+ P3: 
    P1 ->>+ P2: 
    P2 -->>+ P2: 
    P2 -->>+ P2: 

    autonumber 3
    P1 -->>+ P1: 
Loading

and see that the P2 column nodes have drifted so much that by the third event, it is completely detached from the event column.

Screenshots

image

Code Sample

sequenceDiagram
    autonumber
    P1 -->>+ P1: 

    autonumber 1
    P2 -->>+ P2: 

    autonumber 1
    P3 -->>+ P3: 
    P1 ->>+ P2: 
    P2 -->>+ P2: 
    P2 -->>+ P2: 

    autonumber 3
    P1 -->>+ P1:

Setup

  • Mermaid version: 10.9.1
  • Browser and Version: Chrome, Edge, vscode
    they all do it.
    screenshot was captured in edge
    Version 127.0.2651.74 (Official build) (64-bit)

Suggested Solutions

No response

Additional Context

except from the drifting, the feature works great

@ZcuBa ZcuBa added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Aug 6, 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