mirror of
https://github.com/originalnicodr/CinematicUnityExplorer.git
synced 2026-10-12 02:18:04 +08:00
Update DataHeightCache.cs
This commit is contained in:
1 parent
b0d54b1d80
commit
99e11b41a3
1 file changed
+3
-4
@@ -124,10 +124,9 @@ namespace UnityExplorer.UI.Widgets
|
||||
return 0;
|
||||
if (rangeIndex >= rangeCache.Count)
|
||||
{
|
||||
ExplorerCore.Log("desiredHeight is " + desiredHeight + ", but our total height is " + totalHeight + ", clamping to data count");
|
||||
ExplorerCore.Log("highest data index: " + (ScrollPool.DataSource.ItemCount - 1) + ", rangeIndex was " + rangeIndex + ", actual range limit is " + (rangeCache.Count - 1));
|
||||
cache = heightCache[heightCache.Count - 1];
|
||||
return ScrollPool.DataSource.ItemCount - 1;
|
||||
int idx = ScrollPool.DataSource.ItemCount - 1;
|
||||
cache = heightCache[idx];
|
||||
return idx;
|
||||
}
|
||||
|
||||
int dataIndex = rangeCache[rangeIndex];
|
||||
|
||||
Reference in new issue
Block a user