diff --git a/lib/features/snapping/BpmnSnapping.js b/lib/features/snapping/BpmnSnapping.js index c6e59d8b..5ce308a1 100644 --- a/lib/features/snapping/BpmnSnapping.js +++ b/lib/features/snapping/BpmnSnapping.js @@ -131,6 +131,10 @@ function BpmnSnapping(eventBus, canvas) { if (is(shape, 'bpmn:Participant')) { context.minDimensions = { width: 400, height: 200 }; + context.childrenBoxPadding = { + left: 50, + right: 35 + }; } if (is(shape, 'bpmn:TextAnnotation')) { @@ -261,4 +265,4 @@ BpmnSnapping.prototype.addTargetSnaps = function(snapPoints, shape, target) { } }); -}; \ No newline at end of file +}; diff --git a/test/spec/features/snapping/BpmnSnappingSpec.js b/test/spec/features/snapping/BpmnSnappingSpec.js index 8c25678c..4adee87c 100644 --- a/test/spec/features/snapping/BpmnSnappingSpec.js +++ b/test/spec/features/snapping/BpmnSnappingSpec.js @@ -220,4 +220,4 @@ describe('features/snapping - BpmnSnapping', function() { }); -}); \ No newline at end of file +});