mirror of
https://github.com/google/blockly.git
synced 2026-01-09 01:50:11 +01:00
Merge pull request #580 from rachel-fenichel/bugfix/horizontal_rtl
Make blocks appear in the rtl horizontal flyout
This commit is contained in:
@@ -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