mirror of
https://github.com/google/blockly.git
synced 2026-06-17 00:25:14 +02:00
Make blocks appear in the rtl horizontal flyout
This commit is contained in:
+2
-1
@@ -745,7 +745,8 @@ Blockly.Flyout.prototype.layout_ = function(contents, gaps) {
|
||||
if (this.horizontalLayout_) {
|
||||
cursorX += tab;
|
||||
}
|
||||
block.moveBy((this.horizontalLayout_ && this.RTL) ? -cursorX : cursorX,
|
||||
block.moveBy((this.horizontalLayout_ && this.RTL) ?
|
||||
cursorX + blockHW.width - tab : cursorX,
|
||||
cursorY);
|
||||
if (this.horizontalLayout_) {
|
||||
cursorX += (blockHW.width + gaps[i] - tab);
|
||||
|
||||
Reference in New Issue
Block a user