In html tooltip sample padding is read from the options (#8971)

This commit is contained in:
Evert Timberg 2021-04-24 10:51:19 -04:00 committed by GitHub
parent b319f2cfef
commit 87ce198ac8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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';
};
// </block:external>