fix(draw): adjust center-middle aligned label padding

This commit is contained in:
Nico Rehwaldt 2018-06-13 11:09:09 +02:00
parent fb5fccb331
commit 834ac7db77
1 changed files with 1 additions and 1 deletions

View File

@ -461,7 +461,7 @@ export default function BpmnRenderer(
return renderLabel(parentGfx, semantic.name, { return renderLabel(parentGfx, semantic.name, {
box: element, box: element,
align: align, align: align,
padding: 5, padding: align === 'center-middle' ? 0 : 5,
style: { style: {
fill: getStrokeColor(element, defaultStrokeColor) fill: getStrokeColor(element, defaultStrokeColor)
} }