mirror of
https://github.com/google/blockly.git
synced 2026-01-11 02:47:09 +01:00
Fix RTL bubble drag (#3356)
This commit is contained in:
@@ -823,7 +823,9 @@ Blockly.Bubble.prototype.moveDuringDrag = function(dragSurface, newLoc) {
|
||||
*/
|
||||
Blockly.Bubble.prototype.getRelativeToSurfaceXY = function() {
|
||||
return new Blockly.utils.Coordinate(
|
||||
this.anchorXY_.x + this.relativeLeft_,
|
||||
this.workspace_.RTL ?
|
||||
-this.relativeLeft_ + this.anchorXY_.x - this.width_ :
|
||||
this.anchorXY_.x + this.relativeLeft_,
|
||||
this.anchorXY_.y + this.relativeTop_);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user