1 parent e170085 commit 80abab2Copy full SHA for 80abab2
1 file changed
Source/Scripts/UI/GList.cs
@@ -943,11 +943,11 @@ public void ScrollToView(int index, bool ani)
943
/// <param name="setFirst">If true, scroll to make the target on the top/left; If false, scroll to make the target any position in view.</param>
944
public void ScrollToView(int index, bool ani, bool setFirst)
945
{
946
- if (_numItems == 0)
947
- return;
948
-
949
if (_virtual)
950
+ if (_numItems == 0)
+ return;
+
951
CheckVirtualList();
952
953
if (index >= _virtualItems.Count)
0 commit comments