mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-01-07 18:13:35 +08:00
Update DataHeightCache.cs
This commit is contained in:
parent
6d4cc66079
commit
1487372832
@ -199,7 +199,6 @@ namespace UnityExplorer.UI.Widgets
|
|||||||
int minStart = rangeCache[dataIndex];
|
int minStart = rangeCache[dataIndex];
|
||||||
for (int i = minStart; i < rangeCache.Count; i++)
|
for (int i = minStart; i < rangeCache.Count; i++)
|
||||||
{
|
{
|
||||||
ExplorerCore.Log("manually searching for index | " + Time.realtimeSinceStartup);
|
|
||||||
if (rangeCache[i] == dataIndex)
|
if (rangeCache[i] == dataIndex)
|
||||||
{
|
{
|
||||||
rangeIndex = i;
|
rangeIndex = i;
|
||||||
@ -233,7 +232,7 @@ namespace UnityExplorer.UI.Widgets
|
|||||||
if (rangeCache[rangeIndex] == dataIndex)
|
if (rangeCache[rangeIndex] == dataIndex)
|
||||||
rangeCache.Insert(rangeIndex, dataIndex);
|
rangeCache.Insert(rangeIndex, dataIndex);
|
||||||
else
|
else
|
||||||
ExplorerCore.LogWarning($"DataHeightCache Error increading spread of data {dataIndex}, " +
|
ExplorerCore.LogWarning($"DataHeightCache error increasing spread of data {dataIndex}, " +
|
||||||
$"the value at range {rangeIndex} is {rangeCache[rangeIndex]}!");
|
$"the value at range {rangeIndex} is {rangeCache[rangeIndex]}!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -244,7 +243,7 @@ namespace UnityExplorer.UI.Widgets
|
|||||||
if (rangeCache[rangeIndex] == dataIndex)
|
if (rangeCache[rangeIndex] == dataIndex)
|
||||||
rangeCache.RemoveAt(rangeIndex);
|
rangeCache.RemoveAt(rangeIndex);
|
||||||
else
|
else
|
||||||
ExplorerCore.LogWarning($"DataHeightCache Error decreasing spread of data {dataIndex}, " +
|
ExplorerCore.LogWarning($"DataHeightCache error decreasing spread of data {dataIndex}, " +
|
||||||
$"the value at range {rangeIndex} is {rangeCache[rangeIndex]}!");
|
$"the value at range {rangeIndex} is {rangeCache[rangeIndex]}!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user