mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-17 14:00:12 +00:00
修复鼠标不在区域内Tooltip还显示的问题
This commit is contained in:
@@ -21,7 +21,7 @@ namespace XCharts
|
||||
[NonSerialized] private RectTransform m_LabelRectX;
|
||||
[NonSerialized] private RectTransform m_LabelRectY;
|
||||
|
||||
public bool show { get { return m_Show; }set { m_Show = value; } }
|
||||
public bool show { get { return m_Show; }set { m_Show = value; SetActive(value); } }
|
||||
public bool crossLabel { get { return m_CrossLabel; } set { m_CrossLabel = value; } }
|
||||
|
||||
public int dataIndex { get; set; }
|
||||
@@ -119,7 +119,7 @@ namespace XCharts
|
||||
|
||||
public void SetActive(bool flag)
|
||||
{
|
||||
if(m_GameObject)
|
||||
if(m_GameObject && m_GameObject.activeInHierarchy != flag)
|
||||
m_GameObject.SetActive(flag);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user