mirror of
https://github.com/google/blockly.git
synced 2026-01-09 10:00:09 +01:00
fix: Fix bug that caused comments to be incorrectly positioned. (#8668)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user