Skip to content

Commit

Permalink
Fix tooltip padding (#8666)
Browse files Browse the repository at this point in the history
  • Loading branch information
kurkle authored Mar 18, 2021
1 parent 282c858 commit f10b510
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/plugin.tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ function getTooltipSize(tooltip, options) {
ctx.restore();

// Add padding
width += 2 * padding.width;
width += padding.width;

return {width, height};
}
Expand Down
Binary file modified test/fixtures/plugin.tooltip/opacity.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/fixtures/plugin.tooltip/point-style.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/fixtures/plugin.tooltip/positioning.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f10b510

Please sign in to comment.