[bug] fix chart not being created correctly at runtime

This commit is contained in:
monitor1394
2022-06-30 08:31:09 +08:00
parent bb9f28dd5c
commit 47c9b99931
2 changed files with 6 additions and 2 deletions

View File

@@ -275,9 +275,12 @@ namespace XCharts.Runtime
if (component == null) return;
if (component.anyDirty)
{
if (component.componentDirty && component.refreshComponent != null)
if (component.componentDirty)
{
component.refreshComponent.Invoke();
if (component.refreshComponent != null)
component.refreshComponent.Invoke();
else
component.handler.InitComponent();
}
if (component.vertsDirty)
{