]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Make sure that the border width of the tooltip color box is always correct
authorEvert Timberg <evert.timberg+github@gmail.com>
Tue, 6 Jun 2017 23:03:31 +0000 (19:03 -0400)
committerEvert Timberg <evert.timberg+github@gmail.com>
Wed, 7 Jun 2017 22:50:48 +0000 (18:50 -0400)
src/core/core.tooltip.js

index cb21a9bc97ade3a56dfc30c125717d1223eaa085..1b4687b0af5e0d2f532998bccbd104a9881529c5 100644 (file)
@@ -691,6 +691,7 @@ module.exports = function(Chart) {
                                                ctx.fillRect(pt.x, pt.y, bodyFontSize, bodyFontSize);
 
                                                // Border
+                                               ctx.lineWidth = 1;
                                                ctx.strokeStyle = mergeOpacity(vm.labelColors[i].borderColor, opacity);
                                                ctx.strokeRect(pt.x, pt.y, bodyFontSize, bodyFontSize);