chore(renderer): do not double compote TextAnnotation BBox
This commit is contained in:
parent
d05fd2c2df
commit
1b2a69e9cc
|
@ -1413,8 +1413,10 @@ function BpmnRenderer(eventBus, styles, pathMap, priority) {
|
||||||
|
|
||||||
var label = renderLabel(parentGfx, text, { box: box, align: 'left', padding: 5 });
|
var label = renderLabel(parentGfx, text, { box: box, align: 'left', padding: 5 });
|
||||||
|
|
||||||
var height = Math.max(label.getBBox().height + 18, minHeight),
|
var bbox = label.getBBox();
|
||||||
width = Math.max(label.getBBox().width, minWidth);
|
|
||||||
|
var height = Math.max(bbox.height + 18, minHeight),
|
||||||
|
width = Math.max(bbox.width, minWidth);
|
||||||
|
|
||||||
var textPathData = pathMap.getScaledPath('TEXT_ANNOTATION', {
|
var textPathData = pathMap.getScaledPath('TEXT_ANNOTATION', {
|
||||||
xScaleFactor: 1,
|
xScaleFactor: 1,
|
||||||
|
|
Loading…
Reference in New Issue