mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 12:19:08 +02:00
Fix tooltip padding (#8666)
This commit is contained in:
parent
282c85827a
commit
f10b510890
@ -206,7 +206,7 @@ function getTooltipSize(tooltip, options) {
|
||||
ctx.restore();
|
||||
|
||||
// Add padding
|
||||
width += 2 * padding.width;
|
||||
width += padding.width;
|
||||
|
||||
return {width, height};
|
||||
}
|
||||
|
BIN
test/fixtures/plugin.tooltip/opacity.png
vendored
BIN
test/fixtures/plugin.tooltip/opacity.png
vendored
Binary file not shown.
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
BIN
test/fixtures/plugin.tooltip/point-style.png
vendored
BIN
test/fixtures/plugin.tooltip/point-style.png
vendored
Binary file not shown.
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
BIN
test/fixtures/plugin.tooltip/positioning.png
vendored
BIN
test/fixtures/plugin.tooltip/positioning.png
vendored
Binary file not shown.
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 37 KiB |
Loading…
Reference in New Issue
Block a user