mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-21 07:50:16 +00:00
修复Tooltip在特殊情况下可能会超出屏幕显示不完整的问题
This commit is contained in:
@@ -546,7 +546,7 @@ namespace XCharts.Runtime
|
||||
|
||||
tooltip.SetActive(m_ShowTooltip);
|
||||
tooltip.view.Refresh();
|
||||
TooltipHelper.LimitInRect(tooltip, chart.chartRect);
|
||||
TooltipHelper.LimitInRect(chart, tooltip, chart.chartRect);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -633,7 +633,7 @@ namespace XCharts.Runtime
|
||||
tooltip.SetActive(m_ShowTooltip);
|
||||
if (tooltip.view != null)
|
||||
tooltip.view.Refresh();
|
||||
TooltipHelper.LimitInRect(tooltip, chart.chartRect);
|
||||
TooltipHelper.LimitInRect(chart, tooltip, chart.chartRect);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user