From ddbd82bebf8c4a49acf2e5c57ee293ab34b13a42 Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Tue, 11 Jun 2024 08:14:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D`Axis`=E7=9A=84`IndicatorLabe?= =?UTF-8?q?l`=E5=8F=AF=E8=83=BD=E4=BC=9A=E9=81=AE=E6=8C=A1=E4=BD=8F`Toolti?= =?UTF-8?q?p`=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Documentation~/zh/changelog.md | 1 + Runtime/Component/Tooltip/TooltipHandler.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/Documentation~/zh/changelog.md b/Documentation~/zh/changelog.md index 68d6a564..c53f7981 100644 --- a/Documentation~/zh/changelog.md +++ b/Documentation~/zh/changelog.md @@ -73,6 +73,7 @@ slug: /changelog ## master +* (2024.06.11) 修复`Axis`的`IndicatorLabel`可能会遮挡住`Tooltip`的问题 * (2024.06.11) 修复`Tooltip`在`Cross`时`Axis`的`IndicatorLabel`可能不显示的问题 (#315) * (2024.06.10) 调整`Tooltip`的`Corss`重命名为`Cross` * (2024.06.09) 增加`Axis`的`minCategorySpacing`设置类目轴默认的最小类目间距 diff --git a/Runtime/Component/Tooltip/TooltipHandler.cs b/Runtime/Component/Tooltip/TooltipHandler.cs index 3c5b0dca..9636687c 100644 --- a/Runtime/Component/Tooltip/TooltipHandler.cs +++ b/Runtime/Component/Tooltip/TooltipHandler.cs @@ -65,6 +65,7 @@ namespace XCharts.Runtime m_LabelRoot = ChartHelper.AddObject("label", tooltip.gameObject.transform, chart.chartMinAnchor, chart.chartMaxAnchor, chart.chartPivot, chart.chartSizeDelta); + m_LabelRoot.transform.SetSiblingIndex(0); ChartHelper.HideAllObject(m_LabelRoot); m_IndicatorLabels.Clear(); foreach (var com in chart.components)