Skip to content

Commit f30196c

Browse files
fix(UI): make settings scrollable (#2639)
1 parent 4f98f7b commit f30196c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Sentry.Unity.Editor/ConfigurationWindow/SentryWindow.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public static void OpenSentryWindow()
5050
public event Action<ValidationError> OnValidationError = _ => { };
5151

5252
private int _currentTab = 0;
53+
private Vector2 _scrollPosition = Vector2.zero;
5354
private readonly string[] _tabs =
5455
{
5556
"Core",
@@ -134,6 +135,8 @@ private void OnGUI()
134135
EditorGUI.DrawRect(EditorGUILayout.GetControlRect(false, 1), Color.gray);
135136
EditorGUILayout.Space();
136137

138+
_scrollPosition = EditorGUILayout.BeginScrollView(_scrollPosition);
139+
137140
switch (_currentTab)
138141
{
139142
case 0:
@@ -161,6 +164,8 @@ private void OnGUI()
161164
break;
162165
}
163166

167+
EditorGUILayout.EndScrollView();
168+
164169
EditorGUI.EndDisabledGroup();
165170
}
166171

0 commit comments

Comments
 (0)