mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
#5237 Fix for issue with styling rectWithTitle
This commit is contained in:
parent
c4ce8543d3
commit
aa24229786
@ -134,6 +134,7 @@ export const rectWithTitle = async (parent: SVGElement, node: Node) => {
|
||||
innerLine = g.insert('line');
|
||||
rect
|
||||
.attr('class', 'outer title-state')
|
||||
.attr('style', nodeStyles)
|
||||
.attr('x', -bbox.width / 2 - halfPadding)
|
||||
.attr('y', -bbox.height / 2 - halfPadding)
|
||||
.attr('width', bbox.width + (node.padding || 0))
|
||||
|
Loading…
x
Reference in New Issue
Block a user