Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/scratch_comment_bubble.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,17 @@ export class ScratchCommentBubble
}

dropAnchor() {
this.moveTo(this.anchor.x + 40, this.anchor.y - 16);
this.moveTo(
this.anchor.x + 40 * (this.workspace.RTL ? -1 : 1),
this.anchor.y - 16
);
const location = this.getRelativeToSurfaceXY();
this.anchorChain = Blockly.utils.dom.createSvgElement(
Blockly.utils.Svg.LINE,
{
x1: this.anchor.x - location.x,
y1: this.anchor.y - location.y,
x2: this.getSize().width / 2,
x2: (this.getSize().width / 2) * (this.workspace.RTL ? -1 : 1),
y2: 16,
style: `stroke: ${this.sourceBlock.getColourTertiary()}; stroke-width: 1`,
},
Expand Down