We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1ebd0e commit 8b03f4eCopy full SHA for 8b03f4e
1 file changed
engine/entity/entities/rich-text.ts
@@ -216,6 +216,7 @@ export class RichText extends PixiEntity {
216
this.#text.anchor.set(anchor, 0.5);
217
218
const localBounds = this.container.getLocalBounds().rectangle;
219
+ localBounds.scale(1 / this.globalTransform.scale.x, 1 / this.globalTransform.scale.y);
220
const width = localBounds.width;
221
const height = localBounds.height;
222
const x = localBounds.x + width / 2;
0 commit comments