mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-02 20:04:14 +01:00
#5237 fix for issue with alignment of subgraph titles
This commit is contained in:
@@ -35,7 +35,11 @@ const rect = async (parent, node) => {
|
||||
// const text = label
|
||||
// .node()
|
||||
// .appendChild(createLabel(node.label, node.labelStyle, undefined, true));
|
||||
const text = await createText(labelEl, node.label, { style: node.labelStyle, useHtmlLabels });
|
||||
const text = await createText(labelEl, node.label, {
|
||||
style: node.labelStyle,
|
||||
useHtmlLabels,
|
||||
isNode: false,
|
||||
});
|
||||
|
||||
// Get the size of the label
|
||||
let bbox = text.getBBox();
|
||||
|
||||
Reference in New Issue
Block a user