mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
Merge branch '5237-unified-layout-common-renderer' of github.com:mermaid-js/mermaid into 5237-unified-layout-common-renderer
This commit is contained in:
commit
02eb8dacb6
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user