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