Skip to content

Commit

Permalink
feat(bpmn-replace): make add basic collapsed sub-process awareness
Browse files Browse the repository at this point in the history
  • Loading branch information
nikku authored and marstamm committed Nov 17, 2021
1 parent 3adb960 commit cd31ef4
Show file tree
Hide file tree
Showing 3 changed files with 458 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/features/auto-resize/BpmnAutoResizeProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ BpmnAutoResizeProvider.$inject = [
*/
BpmnAutoResizeProvider.prototype.canResize = function(elements, target) {

// do not resize plane elements:
// root elements, collapsed sub-processes
if (is(target.di, 'bpmndi:BPMNPlane')) {
return false;
}

if (!is(target, 'bpmn:Participant') && !is(target, 'bpmn:Lane') && !(is(target, 'bpmn:SubProcess'))) {
return false;
}
Expand Down
Loading

0 comments on commit cd31ef4

Please sign in to comment.