Skip to content
New issue

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

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

Already on GitHub? # to your account

Elk layout subgraph labels have no space with htmlLabels=false #4196

Open
Zannick opened this issue Mar 7, 2023 · 0 comments
Open

Elk layout subgraph labels have no space with htmlLabels=false #4196

Zannick opened this issue Mar 7, 2023 · 0 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@Zannick
Copy link

Zannick commented Mar 7, 2023

Description

In flowchart/graph diagrams, if I create a subgraph and use the elk layout, the subgraph title has no collision: the nodes and subgraphs inside it overlap the title, which is also off-center. Seems similar to #1177 and #1572--it looks like an html text element that has no width and is overflowing.

But it works when I reenable htmlLabels (except for the part where htmlLabels don't work in CLI generation due to #2688 et al).

Steps to reproduce

%%{init: {"flowchart": {"htmlLabels": false, "defaultRenderer": "elk"}}}%%
graph TB

subgraph NOT_CENTERED
    A;
    B;
    C;
end

See the live editor:

Screenshots

Screenshot from 2023-03-06 22-40-35

Code Sample

No response

Setup

  • Mermaid version: 10.0.0
  • Browser and Version: Chrome Version 110.0.5481.177 (Official Build) (64-bit)

Additional Context

No response

@Zannick Zannick added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Mar 7, 2023
@jgreywolf jgreywolf added roadmap items to add to roadmap for auto workflow and removed roadmap items to add to roadmap for auto workflow labels Nov 16, 2023
# for free to join this conversation on GitHub. Already have an account? # 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

2 participants