Skip to content

Commit

Permalink
fix: Fix bug that caused comments to be incorrectly positioned. (#8668)
Browse files Browse the repository at this point in the history
  • Loading branch information
gonfunko authored Nov 21, 2024
1 parent 34b0b52 commit b73d615
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/icons/comment_icon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

Expand Down

0 comments on commit b73d615

Please sign in to comment.