Update packages/mermaid/src/dagre-wrapper/nodes.js
Co-authored-by: Sidharth Vinod <sidharthv96@gmail.com>
This commit is contained in:
parent
aeba7a1d0e
commit
e9f032cceb
|
@ -937,8 +937,8 @@ const class_box = (parent, node) => {
|
|||
'transform',
|
||||
'translate( ' + -maxWidth / 2 + ', ' + ((-1 * maxHeight) / 2 + verticalPos) + ')'
|
||||
);
|
||||
const methodBBox = lbl ? lbl.getBBox() : null;
|
||||
verticalPos += (methodBBox.height ?? 0) + rowPadding;
|
||||
const memberBBox = lbl?.getBBox();
|
||||
verticalPos += (memberBBox?.height ?? 0) + rowPadding;
|
||||
});
|
||||
|
||||
rect
|
||||
|
|
Loading…
Reference in New Issue