Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Removed unnecessary Math.SQRT2
  • Loading branch information
Alfie Hopkin authored Jan 25, 2019
commit b6acb9f6d267504b3e0e061d31b9fe83c0ee7cb2
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