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:
@@ -75,6 +75,8 @@ slug: /changelog
|
||||
|
||||
## master
|
||||
|
||||
* (2024.07.06) 修复`Chart`在动态创建时背景没有自适应的问题 (#323)
|
||||
|
||||
## v3.11.1
|
||||
|
||||
* (2024.07.01) 发布`v3.11.1`版本
|
||||
|
||||
@@ -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