Fix HScroll bar from covering nodes in scene window.

This commit is contained in:
Chandler Cox
2023-10-05 12:10:49 -05:00
parent 86d1d29820
commit 544ff3d5f0

View File

@@ -74,7 +74,7 @@ namespace FlaxEditor.Windows
root.TreeNode.Expand();
_tree = new Tree(true)
{
Margin = new Margin(0.0f, 0.0f, -16.0f, 0.0f), // Hide root node
Margin = new Margin(0.0f, 0.0f, -16.0f, _sceneTreePanel.ScrollBarsSize), // Hide root node
IsScrollable = true,
};
_tree.AddChild(root.TreeNode);