1
0
Fork 0
forked from wry/wry

tree: don't attach container node to parent during construction

This commit is contained in:
Julian Orth 2024-02-21 13:31:54 +01:00
parent 7f37e107af
commit 0ab9ec3b75
4 changed files with 31 additions and 35 deletions

View file

@ -507,8 +507,7 @@ impl State {
c.append_child(node);
}
} else {
let container =
ContainerNode::new(self, ws, ws.clone(), node, ContainerSplit::Horizontal);
let container = ContainerNode::new(self, ws, node, ContainerSplit::Horizontal);
ws.set_container(&container);
}
}