Hi,

After **InitialLayoutCompleted**, I have to expand only one tree root. And also I had customised expand and collapse button.

```
InitialLayoutCompleted: (e) => {
e.diagram.nodes.each(function(r) { r.data['isRg']? collapseDefault(r) : '' });
},
function collapseDefault(node){
myDiagram.startTransaction('CollapseExpandTree');
var children = node.findTreeChildrenNodes();
children.each(function (c) {
c.visible = false;
c.collapseTree();
});
myDiagram.commitTransaction('CollapseExpandTree');
}
```

But diagram appears as follow :

After Expanding second root node , diagram have corrected.

Could you please help me out this, Why this was happening and to correct it?