fix: "offsets" text when font is big

This commit is contained in:
Daniel Santos 2021-11-23 06:32:41 -03:00 committed by GitHub
parent ed57781594
commit fd22a01a3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,6 +27,7 @@ export class FontMetrics {
container.style.fontSize = fontSize; container.style.fontSize = fontSize;
container.style.margin = '0'; container.style.margin = '0';
container.style.padding = '0'; container.style.padding = '0';
container.style.whiteSpace = 'nowrap';
body.appendChild(container); body.appendChild(container);