Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
deemaagog committed Jan 17, 2021
1 parent 656be04 commit d3de4a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/formatter.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,9 @@ export class Formatter {
.map(tick => {
const context = contextMap[tick];
context.preFormat();
return context.getWidth();
const width = context.getWidth();
const metrics = context.getMetrics();
return width + metrics.totalLeftPx;
})
.reduce((a, b) => a + b, 0);

Expand Down

0 comments on commit d3de4a2

Please sign in to comment.