Explorar o código

fix to auto expanding frames

Pamela Wolf %!s(int64=5) %!d(string=hai) anos
pai
achega
640e939ec6
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      nodeEditor/src/diagram/graphFrame.ts

+ 2 - 2
nodeEditor/src/diagram/graphFrame.ts

@@ -1266,7 +1266,7 @@ export class GraphFrame {
     }
 
     public dispose() {
-        this.isCollapsed = false;
+        //this.isCollapsed = false;
         
         this._nodes.forEach(node => {
             node.enclosingFrameId = -1;
@@ -1299,7 +1299,7 @@ export class GraphFrame {
             height: this._height,
             color: this._color.asArray(),
             name: this.name,
-            isCollapsed: false, //keeping closed to make reimporting cleaner
+            isCollapsed: true, //keeping closed to make reimporting cleaner
             blocks: this.nodes.map(n => n.block.uniqueId),
             comments: this._comments
         }