Fix prefab window tree

This commit is contained in:
Chandler Cox
2023-10-05 12:13:41 -05:00
parent 544ff3d5f0
commit 233eb8a39d

View File

@@ -146,7 +146,7 @@ namespace FlaxEditor.Windows.Assets
Graph = new LocalSceneGraph(new CustomRootNode(this));
_tree = new PrefabTree
{
Margin = new Margin(0.0f, 0.0f, -16.0f, 0.0f), // Hide root node
Margin = new Margin(0.0f, 0.0f, -16.0f, _treePanel.ScrollBarsSize), // Hide root node
IsScrollable = true,
};
_tree.AddChild(Graph.Root.TreeNode);