mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-30 05:08:48 +00:00
set tooltip on heighest layer
This commit is contained in:
@@ -45,6 +45,8 @@
|
|||||||
|
|
||||||
## branch-2.0
|
## branch-2.0
|
||||||
|
|
||||||
|
* (2022.06.30) 优化`Radar`让`Tooltip`的层在`Indicator`之上
|
||||||
|
|
||||||
## v2.8.1
|
## v2.8.1
|
||||||
|
|
||||||
* (2022.05.06) 发布`v2.8.1`版本
|
* (2022.05.06) 发布`v2.8.1`版本
|
||||||
|
|||||||
@@ -266,6 +266,8 @@ namespace XCharts
|
|||||||
var offset = new Vector3(textStyle.offset.x, textStyle.offset.y);
|
var offset = new Vector3(textStyle.offset.x, textStyle.offset.y);
|
||||||
AxisHelper.AdjustCircleLabelPos(txt, pos, radar.runtimeCenterPos, txtHig, offset);
|
AxisHelper.AdjustCircleLabelPos(txt, pos, radar.runtimeCenterPos, txtHig, offset);
|
||||||
}
|
}
|
||||||
|
if(chart.tooltip.gameObject != null)
|
||||||
|
chart.tooltip.gameObject.transform.SetSiblingIndex(chart.transform.childCount-1);
|
||||||
chart.RefreshBasePainter();
|
chart.RefreshBasePainter();
|
||||||
};
|
};
|
||||||
radar.refreshComponent.Invoke();
|
radar.refreshComponent.Invoke();
|
||||||
|
|||||||
Reference in New Issue
Block a user