Skip to content

Commit

Permalink
fix: "offsets" text when font is big
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-dia authored Nov 23, 2021
1 parent ed57781 commit fd22a01
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/render/font-metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export class FontMetrics {
container.style.fontSize = fontSize;
container.style.margin = '0';
container.style.padding = '0';
container.style.whiteSpace = 'nowrap';

body.appendChild(container);

Expand Down

0 comments on commit fd22a01

Please sign in to comment.