Skip to content

Commit b6acb9f

Browse files
author
Alfie Hopkin
authored
Removed unnecessary Math.SQRT2
1 parent 80f117d commit b6acb9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/plugin.legend.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ defaults._set('global', {
9191
*/
9292
function getBoxWidth(labelOpts, fontSize) {
9393
return labelOpts.usePointStyle && labelOpts.boxWidth > fontSize ?
94-
fontSize * Math.SQRT2 :
94+
fontSize :
9595
labelOpts.boxWidth;
9696
}
9797

0 commit comments

Comments
 (0)