修复MarkLineLabel在初始化时可能会闪烁的问题

This commit is contained in:
monitor1394
2024-07-17 23:16:22 +08:00
parent d5fbd33534
commit 35e8f3e902
3 changed files with 4 additions and 1 deletions

View File

@@ -86,7 +86,7 @@ namespace XCharts.Runtime
content, Color.clear, TextAnchor.MiddleCenter);
var pos = MarkLineHelper.GetLabelPosition(data);
label.SetIconActive(false);
label.SetActive(data.label.show && data.runtimeInGrid, true);
label.SetActive(false, true);
label.SetPosition(pos);
data.runtimeLabel = label;
};