Skip to content

Commit

Permalink
Manually merge fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bigtimebuddy committed Dec 1, 2022
1 parent 58c7725 commit 9dec54b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/HTMLText.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 9dec54b

Please sign in to comment.