mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
Update packages/mermaid/src/dagre-wrapper/nodes.js
Co-authored-by: Sidharth Vinod <sidharthv96@gmail.com>
This commit is contained in:
parent
12c657f514
commit
aeba7a1d0e
@ -918,8 +918,8 @@ const class_box = (parent, node) => {
|
||||
')'
|
||||
);
|
||||
//get the height of the bounding box of each member if exists
|
||||
const memberBBox = lbl ? lbl.getBBox() : null;
|
||||
verticalPos += (memberBBox.height ?? 0) + rowPadding;
|
||||
const memberBBox = lbl?.getBBox();
|
||||
verticalPos += (memberBBox?.height ?? 0) + rowPadding;
|
||||
});
|
||||
|
||||
verticalPos += lineHeight;
|
||||
|
Loading…
x
Reference in New Issue
Block a user