Skip to content

Commit

Permalink
Addressing comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Mar 29, 2018
1 parent 723e77e commit 8d01cd5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions superset/assets/javascripts/modules/visUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ export function getTextWidth(text, fontDetails = '12px Roboto') {
if (context) {
// Won't work outside of a browser context (ie unit tests)
context.font = fontDetails;
const metrics = context.measureText(text);
return metrics.width;
return context.measureText(text).width;
}
return 100;
}
Expand Down

0 comments on commit 8d01cd5

Please sign in to comment.