From d9a577f7b279f03ba23360e09168d197d8063da8 Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Fri, 26 Jul 2019 19:33:58 -0400 Subject: [PATCH] Forgot this from Minor cosmetic fixes commit 7c0b088996ff4c40cb91c6151638fcc468fefc43 --- js/component/chart.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/component/chart.js b/js/component/chart.js index f57a652..eef4ef1 100644 --- a/js/component/chart.js +++ b/js/component/chart.js @@ -201,10 +201,11 @@ beestat.component.chart.tooltip_positioner = function( * * @param {string} title The tooltip title. * @param {array} sections Data inside the tooltip. + * @param {number} first_column_min_width Minimum width of the first column. * * @return {string} The tooltip HTML. */ -beestat.component.chart.tooltip_formatter = function(title, sections) { +beestat.component.chart.tooltip_formatter = function(title, sections, first_column_min_width) { var tooltip = $.createElement('div') .style({ 'background-color': beestat.style.color.bluegray.dark, @@ -236,7 +237,7 @@ beestat.component.chart.tooltip_formatter = function(title, sections) { var td_label = $.createElement('td') .style({ - 'min-width': '115px', + 'min-width': (first_column_min_width || 115) + 'px', 'font-weight': beestat.style.font_weight.bold }) .innerText(item.label);