From e66f2d92aad254a56db5e41976ce7c2f408c8d12 Mon Sep 17 00:00:00 2001 From: Nico Rehwaldt Date: Fri, 21 Aug 2015 13:58:23 +0200 Subject: [PATCH] fix(rules): adjust participant size + fix test case --- lib/features/rules/BpmnRules.js | 2 +- test/spec/features/rules/BpmnRulesSpec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/features/rules/BpmnRules.js b/lib/features/rules/BpmnRules.js index 282fecdd..7be8789b 100644 --- a/lib/features/rules/BpmnRules.js +++ b/lib/features/rules/BpmnRules.js @@ -503,7 +503,7 @@ function canResize(shape, newBounds) { } if (is(shape, 'bpmn:Participant')) { - return !newBounds || (newBounds.width >= 100 && newBounds.height >= 80); + return !newBounds || (newBounds.width >= 250 && newBounds.height >= 50); } if (is(shape, 'bpmn:TextAnnotation')) { diff --git a/test/spec/features/rules/BpmnRulesSpec.js b/test/spec/features/rules/BpmnRulesSpec.js index 9ff254dc..fd68aaea 100644 --- a/test/spec/features/rules/BpmnRulesSpec.js +++ b/test/spec/features/rules/BpmnRulesSpec.js @@ -884,7 +884,7 @@ describe('features/modeling/rules - BpmnRules', function() { describe('should resize', function() { - it('Lane', inject(function(bpmnRules) { + it('Lane', inject(function(bpmnRules, elementRegistry) { // given var laneElement = elementRegistry.get('Lane');