Compute correct tooltip size when there is no title present (#3324)

This commit is contained in:
Evert Timberg 2016-09-24 04:58:31 -04:00 committed by Simon Brunel
parent 9015e72ae1
commit 11e8c50f72

View File

@ -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