Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 970a25f

Browse files
Merge pull request #470 from github-for-unity/fixes/branches-view-folder-clickable-area
Making the folders selectable via mouse
2 parents ea44651 + c4d641c commit 970a25f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/UnityExtension/Assets/Editor/GitHub.Unity/UI/TreeControl.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,8 +448,10 @@ public bool Render(Rect rect, float indentation, bool isSelected, GUIStyle folde
448448

449449
if (IsFolder)
450450
{
451+
var toggleRect = new Rect(nodeRect.x, nodeRect.y, style.border.horizontal, nodeRect.height);
452+
451453
EditorGUI.BeginChangeCheck();
452-
GUI.Toggle(nodeRect, !IsCollapsed, GUIContent.none, GUIStyle.none);
454+
GUI.Toggle(toggleRect, !IsCollapsed, GUIContent.none, GUIStyle.none);
453455
changed = EditorGUI.EndChangeCheck();
454456
}
455457

0 commit comments

Comments
 (0)