From 5dce3ebc1ffbbb28302da89fd37c09d2319625ab Mon Sep 17 00:00:00 2001 From: Stanley Goldman Date: Mon, 27 Nov 2017 09:37:15 -0500 Subject: [PATCH] Making sure to capture the rect returned by the remote tree branch Otherwise the scrollable area will be restrcticted to the local branch tree --- .../Assets/Editor/GitHub.Unity/UI/BranchesView.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UnityExtension/Assets/Editor/GitHub.Unity/UI/BranchesView.cs b/src/UnityExtension/Assets/Editor/GitHub.Unity/UI/BranchesView.cs index fd19672c3..d38ff9fd4 100644 --- a/src/UnityExtension/Assets/Editor/GitHub.Unity/UI/BranchesView.cs +++ b/src/UnityExtension/Assets/Editor/GitHub.Unity/UI/BranchesView.cs @@ -316,7 +316,7 @@ private void OnTreeGUI(Rect rect) rect.y += Styles.TreePadding; - treeRemotes.Render(rect, scroll, _ => {}, selectedNode => + rect = treeRemotes.Render(rect, scroll, _ => {}, selectedNode => { var indexOfFirstSlash = selectedNode.Name.IndexOf('/'); var originName = selectedNode.Name.Substring(0, indexOfFirstSlash);