mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
Compute correct tooltip size when there is no title present (#3324)
This commit is contained in:
parent
9015e72ae1
commit
11e8c50f72
@ -354,7 +354,7 @@ module.exports = function(Chart) {
|
||||
footerFontSize = vm.footerFontSize;
|
||||
|
||||
size.height += titleLineCount * titleFontSize; // Title Lines
|
||||
size.height += (titleLineCount - 1) * vm.titleSpacing; // Title Line Spacing
|
||||
size.height += titleLineCount ? (titleLineCount - 1) * vm.titleSpacing : 0; // Title Line Spacing
|
||||
size.height += titleLineCount ? vm.titleMarginBottom : 0; // Title's bottom Margin
|
||||
size.height += combinedBodyLength * bodyFontSize; // Body Lines
|
||||
size.height += combinedBodyLength ? (combinedBodyLength - 1) * vm.bodySpacing : 0; // Body Line Spacing
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user