chore(renderer): do not double compote TextAnnotation BBox

This commit is contained in:
Nico Rehwaldt 2016-11-15 15:14:10 +01:00
parent d05fd2c2df
commit 1b2a69e9cc
1 changed files with 4 additions and 2 deletions

View File

@ -1413,8 +1413,10 @@ function BpmnRenderer(eventBus, styles, pathMap, priority) {
var label = renderLabel(parentGfx, text, { box: box, align: 'left', padding: 5 });
var height = Math.max(label.getBBox().height + 18, minHeight),
width = Math.max(label.getBBox().width, minWidth);
var bbox = label.getBBox();
var height = Math.max(bbox.height + 18, minHeight),
width = Math.max(bbox.width, minWidth);
var textPathData = pathMap.getScaledPath('TEXT_ANNOTATION', {
xScaleFactor: 1,