Skip to content

Commit

Permalink
Compute correct tooltip size when there is no title present (chartjs#…
Browse files Browse the repository at this point in the history
  • Loading branch information
etimberg authored and simonbrunel committed Sep 24, 2016
1 parent 2dd7fdb commit 64db4d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/core.tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 64db4d1

Please sign in to comment.