File tree 1 file changed +14
-8
lines changed
lib/features/modeling/behavior
1 file changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -107,17 +107,23 @@ export default function SubProcessPlaneBehavior(
107
107
} , true ) ;
108
108
109
109
110
- this . postExecuted ( 'shape.create' , function ( context ) {
111
- var shape = context . shape ,
112
- rootElement = context . newRootElement ;
110
+ this . postExecuted ( 'elements.create' , function ( context ) {
113
111
114
- if ( ! rootElement || ! shape . children ) {
115
- return ;
116
- }
112
+ var elements = context . elements ;
113
+
114
+ elements . forEach ( function ( element ) {
117
115
118
- self . _showRecursively ( shape . children ) ;
116
+ var rootElement = elementRegistry . get ( getPlaneIdFromShape ( element ) ) ;
119
117
120
- self . _moveChildrenToShape ( shape , rootElement ) ;
118
+ if ( ! rootElement || ! element . children ) {
119
+ return ;
120
+ }
121
+
122
+ self . _showRecursively ( element . children ) ;
123
+
124
+ self . _moveChildrenToShape ( element , rootElement ) ;
125
+
126
+ } ) ;
121
127
} , true ) ;
122
128
123
129
You can’t perform that action at this time.
0 commit comments