File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
apps/demo-free-layout/src Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ export const LoopNodeRegistry: FlowNodeRegistry = {
37
37
width : 424 ,
38
38
height : 244 ,
39
39
} ,
40
+ autoResizeDisable : true ,
40
41
/**
41
42
* The subcanvas padding setting
42
43
* 子画布 padding 设置
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ export function toggleLoopExpanded(
17
17
} ;
18
18
node . transform . collapsed = ! expanded ;
19
19
if ( ! expanded ) {
20
+ node . transform . transform . clearChildren ( ) ;
20
21
node . transform . transform . update ( {
21
22
position : {
22
23
x : prePosition . x - node . transform . padding . left ,
@@ -27,14 +28,12 @@ export function toggleLoopExpanded(
27
28
y : 0 ,
28
29
} ,
29
30
} ) ;
30
- setTimeout ( ( ) => {
31
- // When folded, the width and height no longer change according to the child nodes, and need to be set manually
32
- // 折叠起来,宽高不再根据子节点变化,需要手动设置
33
- node . transform . size = {
34
- width : bounds . width ,
35
- height : heightCollapsed ,
36
- } ;
37
- } , 0 ) ;
31
+ // When folded, the width and height no longer change according to the child nodes, and need to be set manually
32
+ // 折叠起来,宽高不再根据子节点变化,需要手动设置
33
+ node . transform . size = {
34
+ width : bounds . width ,
35
+ height : heightCollapsed ,
36
+ } ;
38
37
} else {
39
38
node . transform . transform . update ( {
40
39
position : {
You can’t perform that action at this time.
0 commit comments