From: Evert Timberg Date: Sat, 24 Apr 2021 14:51:19 +0000 (-0400) Subject: In html tooltip sample padding is read from the options (#8971) X-Git-Tag: v3.2.0~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=87ce198ac89730b665fd154f4d017db42c14d31b;p=thirdparty%2FChart.js.git In html tooltip sample padding is read from the options (#8971) --- diff --git a/docs/samples/tooltip/html.md b/docs/samples/tooltip/html.md index 2a7cb9e52..d4903d7b6 100644 --- a/docs/samples/tooltip/html.md +++ b/docs/samples/tooltip/html.md @@ -106,7 +106,7 @@ const externalTooltipHandler = (context) => { tooltipEl.style.left = positionX + tooltip.caretX + 'px'; tooltipEl.style.top = positionY + tooltip.caretY + 'px'; tooltipEl.style.font = tooltip.options.bodyFont.string; - tooltipEl.style.padding = tooltip.padding + 'px ' + tooltip.padding + 'px'; + tooltipEl.style.padding = tooltip.options.padding + 'px ' + tooltip.options.padding + 'px'; }; //