diff --git a/src/UnityExtension/Assets/Editor/GitHub.Unity/UI/TreeControl.cs b/src/UnityExtension/Assets/Editor/GitHub.Unity/UI/TreeControl.cs index 1a61735c8..adc003795 100644 --- a/src/UnityExtension/Assets/Editor/GitHub.Unity/UI/TreeControl.cs +++ b/src/UnityExtension/Assets/Editor/GitHub.Unity/UI/TreeControl.cs @@ -448,8 +448,10 @@ public bool Render(Rect rect, float indentation, bool isSelected, GUIStyle folde if (IsFolder) { + var toggleRect = new Rect(nodeRect.x, nodeRect.y, style.border.horizontal, nodeRect.height); + EditorGUI.BeginChangeCheck(); - GUI.Toggle(nodeRect, !IsCollapsed, GUIContent.none, GUIStyle.none); + GUI.Toggle(toggleRect, !IsCollapsed, GUIContent.none, GUIStyle.none); changed = EditorGUI.EndChangeCheck(); }