Merge pull request #580 from rachel-fenichel/bugfix/horizontal_rtl

Make blocks appear in the rtl horizontal flyout
This commit is contained in:
rachel-fenichel
2016-08-23 13:15:24 -07:00
committed by GitHub

View File

@@ -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);