mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-14 20:00:09 +00:00
[bug] fix axis label active
This commit is contained in:
@@ -53,6 +53,8 @@
|
||||
|
||||
## master
|
||||
|
||||
* (2022.06.08) 修复`Axis`的`AxisLabel`在设置不显示时还显示首尾两个`label`的问题
|
||||
|
||||
## v3.0.0
|
||||
|
||||
* 更健壮的底层框架。
|
||||
|
||||
@@ -300,6 +300,11 @@ namespace XCharts
|
||||
|
||||
internal void CheckValueLabelActive(Axis axis, int i, ChartLabel label, Vector3 pos)
|
||||
{
|
||||
if (!axis.show || !axis.axisLabel.show)
|
||||
{
|
||||
label.SetTextActive(false);
|
||||
return;
|
||||
}
|
||||
if (axis.IsValue())
|
||||
{
|
||||
if (orient == Orient.Horizonal)
|
||||
|
||||
Reference in New Issue
Block a user