Fix zelos input outline rendering in RTL (#3435)

This commit is contained in:
Sam El-Husseini
2019-11-13 10:38:29 -08:00
committed by GitHub
parent 9dc46ce292
commit ed79ea6d94

View File

@@ -85,6 +85,18 @@ Blockly.zelos.PathObject.prototype.setPath = function(pathString) {
}
};
/**
* @override
*/
Blockly.zelos.PathObject.prototype.flipRTL = function() {
Blockly.zelos.PathObject.superClass_.flipRTL.call(this);
// Mirror each input outline path.
for (var i = 0, keys = Object.keys(this.outlines_),
key; (key = keys[i]); i++) {
this.outlines_[key].setAttribute('transform', 'scale(-1 1)');
}
};
/**
* @override
*/