#5237 Fix for issue with styling rectWithTitle

This commit is contained in:
Knut Sveidqvist 2024-08-01 16:09:00 +02:00
parent c4ce8543d3
commit aa24229786

View File

@ -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))