Skip to content

Commit

Permalink
Removed unnecessary Math.SQRT2
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfie Hopkin authored Jan 25, 2019
1 parent 80f117d commit b6acb9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/plugin.legend.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ defaults._set('global', {
*/
function getBoxWidth(labelOpts, fontSize) {
return labelOpts.usePointStyle && labelOpts.boxWidth > fontSize ?
fontSize * Math.SQRT2 :
fontSize :
labelOpts.boxWidth;
}

Expand Down

0 comments on commit b6acb9f

Please sign in to comment.