From 9dec54b7c48ee2a782fee597aae65e475418d937 Mon Sep 17 00:00:00 2001 From: Matt Karl Date: Thu, 1 Dec 2022 15:31:20 -0500 Subject: [PATCH] Manually merge fix --- src/HTMLText.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/HTMLText.ts b/src/HTMLText.ts index 0d07157..16b4d4e 100644 --- a/src/HTMLText.ts +++ b/src/HTMLText.ts @@ -116,7 +116,9 @@ export class HTMLText extends Sprite // Measure the contents document.body.appendChild(dom); - const { width, height } = dom.getBoundingClientRect(); + const { width: _width, height: _height } = dom.getBoundingClientRect(); + const width = Math.ceil(_width); + const height = Math.ceil(_height); document.body.removeChild(dom);