Skip to content

Commit 139b4b9

Browse files
authored
fix: creating comments in RTL (#8153)
1 parent 70ca676 commit 139b4b9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/comments/rendered_workspace_comment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export class RenderedWorkspaceComment
143143
*/
144144
getBoundingRectangle(): Rect {
145145
const loc = this.getRelativeToSurfaceXY();
146-
const size = this.view.getSize();
146+
const size = this.view?.getSize() ?? this.getSize();
147147
let left;
148148
let right;
149149
if (this.workspace.RTL) {

0 commit comments

Comments
 (0)