mgr/dashboard: Improve position of MDS chart tooltip (#31368)

mgr/dashboard: Improve position of MDS chart tooltip

Reviewed-by: Volker Theile <vtheile@suse.com>
This commit is contained in:
Lenz Grimmer 2019-11-11 15:29:11 +00:00 committed by GitHub
commit 825979c5c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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;