File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -129,15 +129,19 @@ export class ScratchCommentBubble
129
129
}
130
130
131
131
dropAnchor ( ) {
132
- this . moveTo ( this . anchor . x + 40 , this . anchor . y - 16 ) ;
132
+ const verticalOffset = 16 ;
133
+ this . moveTo (
134
+ this . anchor . x + 40 * ( this . workspace . RTL ? - 1 : 1 ) ,
135
+ this . anchor . y - verticalOffset
136
+ ) ;
133
137
const location = this . getRelativeToSurfaceXY ( ) ;
134
138
this . anchorChain = Blockly . utils . dom . createSvgElement (
135
139
Blockly . utils . Svg . LINE ,
136
140
{
137
141
x1 : this . anchor . x - location . x ,
138
142
y1 : this . anchor . y - location . y ,
139
- x2 : this . getSize ( ) . width / 2 ,
140
- y2 : 16 ,
143
+ x2 : ( this . getSize ( ) . width / 2 ) * ( this . workspace . RTL ? - 1 : 1 ) ,
144
+ y2 : verticalOffset ,
141
145
style : `stroke: ${ this . sourceBlock . getColourTertiary ( ) } ; stroke-width: 1` ,
142
146
} ,
143
147
this . getSvgRoot ( )
You can’t perform that action at this time.
0 commit comments