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

Add er.useMaxWidth config option #1534

Merged
merged 2 commits into from
Jul 12, 2020

Conversation

72636c
Copy link
Contributor

@72636c 72636c commented Jul 11, 2020

📑 Summary

This restores the option of rendering an ERD with an absolute width. This logic was lost in #1324:

9199546#diff-7c38d27acbe0676d923bf19283671616L397-L409

📏 Design Decisions

  • Defaults to true for backwards compatibility.
  • Omits height SVG attribute when useMaxWidth is enabled, which seems most consistent with implementations for the other diagram types. I don't think this is a breaking change but can add it back in if needed.

📋 Tasks

Make sure you

  • 📖 have read the contribution guidelines
  • 💻 have added unit/e2e tests (if appropriate)
  • 🔖 targeted develop branch

72636c added 2 commits July 11, 2020 18:54
This restores the option of rendering an ERD with an absolute width,
which is consistent with the approach taken with the other diagram
types.

This logic was lost in mermaid-js#1324, which was probably just a small oversight:

mermaid-js@9199546#diff-7c38d27acbe0676d923bf19283671616L397-L409

The option defaults to true for backwards compatibility.
@knsv knsv merged commit 8255088 into mermaid-js:develop Jul 12, 2020
@72636c 72636c deleted the feature/er_use_max_width branch July 12, 2020 09:09
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

Successfully merging this pull request may close these issues.

2 participants