Skip to content

Commit

Permalink
Merge branch '5237-unified-layout-common-renderer' of github.com:merm…
Browse files Browse the repository at this point in the history
…aid-js/mermaid into 5237-unified-layout-common-renderer
  • Loading branch information
knsv committed Aug 9, 2024
2 parents afb69a3 + 095e8ca commit 02eb8da
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1088,6 +1088,19 @@ export const draw = async function (_text: string, id: string, _version: string,

const { bounds: box } = bounds.getBounds();

if (box.startx === undefined) {
box.startx = 0;
}
if (box.starty === undefined) {
box.starty = 0;
}
if (box.stopx === undefined) {
box.stopx = 0;
}
if (box.stopy === undefined) {
box.stopy = 0;
}

// Make sure the height of the diagram supports long menus.
let boxHeight = box.stopy - box.starty;
if (boxHeight < requiredBoxSize.maxHeight) {
Expand Down

0 comments on commit 02eb8da

Please sign in to comment.