From: Tiago Melo Date: Mon, 4 Nov 2019 16:08:57 +0000 (-0100) Subject: mgr/dashboard: Improve position of MDS chart tooltip X-Git-Tag: v15.1.0~958^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=534b202f402a0ac6adb1b4c223a0bf21d76fe2e7;p=ceph.git 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 --- 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 b7809c4c72c5..84dd3c6f347b 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;