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

Fixes: https://tracker.ceph.com/issues/42623
Signed-off-by: Tiago Melo <tmelo@suse.com>
(cherry picked from commit 534b202f402a0ac6adb1b4c223a0bf21d76fe2e7)

src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-chart/cephfs-chart.component.ts

index dd1384d3665469dbd3bdd395a5c0be07771fe25f..4f138f229cf78d9d24022fcb46899515ac86739f 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;