]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/dashboard: Improve position of MDS chart tooltip
authorTiago Melo <tmelo@suse.com>
Mon, 4 Nov 2019 16:08:57 +0000 (15:08 -0100)
committerTiago Melo <tmelo@suse.com>
Mon, 4 Nov 2019 16:36:07 +0000 (15:36 -0100)
The previous position was overlapping the data points.

Fixes: https://tracker.ceph.com/issues/42623
Signed-off-by: Tiago Melo <tmelo@suse.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-chart/cephfs-chart.component.ts

index b7809c4c72c543e27c608fb3a431942cf5310f59..84dd3c6f347b4beae6ddd4032f087cc0e1f44a03 100644 (file)
@@ -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;