Skip to content

Commit

Permalink
Merge branch 'google:develop' into devesh
Browse files Browse the repository at this point in the history
  • Loading branch information
devesh-2002 authored Jul 17, 2024
2 parents 1faa502 + 4cdca28 commit 9056dc7
Show file tree
Hide file tree
Showing 5 changed files with 147 additions and 163 deletions.
2 changes: 1 addition & 1 deletion core/block_svg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ export class BlockSvg
getBoundingRectangleWithoutChildren(): Rect {
return this.getBoundingRectangleWithDimensions({
height: this.height,
width: this.width,
width: this.childlessWidth,
});
}

Expand Down
2 changes: 1 addition & 1 deletion core/comments/comment_view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export class CommentView implements IRenderedElement {

constructor(private readonly workspace: WorkspaceSvg) {
this.svgRoot = dom.createSvgElement(Svg.G, {
'class': 'blocklyComment blocklyEditable',
'class': 'blocklyComment blocklyEditable blocklyDraggable',
});

this.highlightRect = this.createHighlightRect(this.svgRoot);
Expand Down
1 change: 1 addition & 0 deletions core/comments/rendered_workspace_comment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export class RenderedWorkspaceComment
// Set the size to the default size as defined in the superclass.
this.view.setSize(this.getSize());
this.view.setEditable(this.isEditable());
this.view.getSvgRoot().setAttribute('data-id', this.id);

this.addModelUpdateBindings();

Expand Down
1 change: 0 additions & 1 deletion core/workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,6 @@ export class Workspace implements IASTNodeLocation {
*
* @param id ID of comment to find.
* @returns The sought after comment, or null if not found.
* @internal
*/
getCommentById(id: string): WorkspaceComment | null {
return this.commentDB.get(id) ?? null;
Expand Down
Loading

0 comments on commit 9056dc7

Please sign in to comment.