fix: creating comments in RTL (#8153)

This commit is contained in:
Beka Westberg
2024-05-20 16:54:30 +00:00
committed by GitHub
parent 70ca676c24
commit 139b4b993f

View File

@@ -143,7 +143,7 @@ export class RenderedWorkspaceComment
*/ */
getBoundingRectangle(): Rect { getBoundingRectangle(): Rect {
const loc = this.getRelativeToSurfaceXY(); const loc = this.getRelativeToSurfaceXY();
const size = this.view.getSize(); const size = this.view?.getSize() ?? this.getSize();
let left; let left;
let right; let right;
if (this.workspace.RTL) { if (this.workspace.RTL) {