From 90faab981d04d5b2f25244669c8183882fd4e4a9 Mon Sep 17 00:00:00 2001 From: Nico Rehwaldt Date: Thu, 20 Sep 2018 21:57:10 +0200 Subject: [PATCH] fix(draw): correct embedded label padding --- lib/draw/BpmnRenderer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/draw/BpmnRenderer.js b/lib/draw/BpmnRenderer.js index ebbb3ae9..c29e5cd7 100644 --- a/lib/draw/BpmnRenderer.js +++ b/lib/draw/BpmnRenderer.js @@ -461,7 +461,7 @@ export default function BpmnRenderer( return renderLabel(parentGfx, semantic.name, { box: element, align: align, - padding: align === 'center-middle' ? 0 : 5, + padding: 5, style: { fill: getStrokeColor(element, defaultStrokeColor) }