From 569ef62f13431d1b5f7ef437f33d483ad2fa1e5a Mon Sep 17 00:00:00 2001 From: Niklas Kiefer Date: Tue, 14 May 2019 09:38:46 +0200 Subject: [PATCH] chore(element-factory): add default size for group --- lib/features/modeling/ElementFactory.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/features/modeling/ElementFactory.js b/lib/features/modeling/ElementFactory.js index bbb7f385..63a6f043 100644 --- a/lib/features/modeling/ElementFactory.js +++ b/lib/features/modeling/ElementFactory.js @@ -187,6 +187,10 @@ ElementFactory.prototype._getDefaultSize = function(semantic) { return { width: 100, height: 30 }; } + if (is(semantic, 'bpmn:Group')) { + return { width: 150, height: 120 }; + } + return { width: 100, height: 80 }; };