优化Tooltip的对齐方式

This commit is contained in:
monitor1394
2025-02-18 23:30:56 +08:00
parent 214b84c71d
commit 9ddc543ed7
8 changed files with 87 additions and 39 deletions

View File

@@ -377,7 +377,7 @@ namespace XCharts.Runtime
serie.index = i;
SetPainterActive(i, true);
}
if (transform.childCount - 3 != m_PainterTop.transform.GetSiblingIndex())
if (m_PainterTop != null && transform.childCount - 3 != m_PainterTop.transform.GetSiblingIndex())
{
m_PainterTop.transform.SetSiblingIndex(transform.childCount - 3);
}