mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-20 07:20:08 +00:00
修复Chart在动态创建时背景没有自适应的问题 (#323)
This commit is contained in:
@@ -175,6 +175,7 @@ namespace XCharts.Runtime
|
||||
m_ChartWidth = m_GraphWidth;
|
||||
m_ChartHeight = m_GraphHeight;
|
||||
rectTransform.sizeDelta = new Vector2(m_ChartWidth, m_ChartHeight);
|
||||
UpdateSize();
|
||||
}
|
||||
ChartHelper.HideAllObject(transform);
|
||||
m_ChartInited = true;
|
||||
|
||||
Reference in New Issue
Block a user