Skip to content

Commit

Permalink
In html tooltip sample padding is read from the options (#8971)
Browse files Browse the repository at this point in the history
  • Loading branch information
etimberg committed Apr 24, 2021
1 parent b319f2c commit 87ce198
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/samples/tooltip/html.md
Expand Up @@ -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>

Expand Down

0 comments on commit 87ce198

Please sign in to comment.