From 139b4b993fdff26f34a8796cbfbcaaa167d31445 Mon Sep 17 00:00:00 2001 From: Beka Westberg Date: Mon, 20 May 2024 16:54:30 +0000 Subject: [PATCH] fix: creating comments in RTL (#8153) --- core/comments/rendered_workspace_comment.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/comments/rendered_workspace_comment.ts b/core/comments/rendered_workspace_comment.ts index 9ff1ce112..b5818895f 100644 --- a/core/comments/rendered_workspace_comment.ts +++ b/core/comments/rendered_workspace_comment.ts @@ -143,7 +143,7 @@ export class RenderedWorkspaceComment */ getBoundingRectangle(): Rect { const loc = this.getRelativeToSurfaceXY(); - const size = this.view.getSize(); + const size = this.view?.getSize() ?? this.getSize(); let left; let right; if (this.workspace.RTL) {