diff --git a/core/icons/comment_icon.ts b/core/icons/comment_icon.ts index 8cdf779187..ea120ca172 100644 --- a/core/icons/comment_icon.ts +++ b/core/icons/comment_icon.ts @@ -338,8 +338,7 @@ export class CommentIcon extends Icon implements IHasBubble, ISerializable { * I.E. the block that owns this icon. */ private getBubbleOwnerRect(): Rect { - const bbox = (this.sourceBlock as BlockSvg).getSvgRoot().getBBox(); - return new Rect(bbox.y, bbox.y + bbox.height, bbox.x, bbox.x + bbox.width); + return (this.sourceBlock as BlockSvg).getBoundingRectangleWithoutChildren(); } }