From 4ab987c913a0f4e6cd86b552905273249d6c5c4a Mon Sep 17 00:00:00 2001 From: Tiago Melo Date: Mon, 4 Nov 2019 15:08:57 -0100 Subject: [PATCH] mgr/dashboard: Improve position of MDS chart tooltip The previous position was overlapping the data points. Fixes: https://tracker.ceph.com/issues/42623 Signed-off-by: Tiago Melo (cherry picked from commit 534b202f402a0ac6adb1b4c223a0bf21d76fe2e7) --- .../src/app/ceph/cephfs/cephfs-chart/cephfs-chart.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-chart/cephfs-chart.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-chart/cephfs-chart.component.ts index dd1384d366546..4f138f229cf78 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-chart/cephfs-chart.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-chart/cephfs-chart.component.ts @@ -124,7 +124,7 @@ export class CephfsChartComponent implements OnChanges, OnInit { this.chartCanvas, this.chartTooltip, (tooltip) => tooltip.caretX + 'px', - (tooltip) => tooltip.caretY - tooltip.height - 15 + 'px' + (tooltip) => tooltip.caretY - tooltip.height - 23 + 'px' ); chartTooltip.getTitle = (ts) => moment(ts, 'x').format('LTS'); chartTooltip.checkOffset = true; -- 2.39.5