mirror of
https://github.com/google/blockly.git
synced 2026-01-09 01:50:11 +01:00
Fix geras collapsed rendering incorrect in RTL (#3709)
This commit is contained in:
@@ -53,7 +53,7 @@ Blockly.geras.HighlightConstantProvider = function(constants) {
|
||||
* @package
|
||||
*/
|
||||
Blockly.geras.HighlightConstantProvider.prototype.init = function() {
|
||||
|
||||
|
||||
/**
|
||||
* An object containing sizing and path information about inside corner
|
||||
* highlights.
|
||||
@@ -273,7 +273,9 @@ Blockly.geras.HighlightConstantProvider.prototype.makeJaggedTeeth = function() {
|
||||
Blockly.utils.svgPaths.moveBy(-10.2, 6.8) +
|
||||
Blockly.utils.svgPaths.lineTo(5.1, 2.6);
|
||||
return {
|
||||
pathLeft: pathLeft
|
||||
pathLeft: pathLeft,
|
||||
height: 12,
|
||||
width: 10.2
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -110,11 +110,10 @@ Blockly.geras.Highlighter.prototype.drawTopCorner = function(row) {
|
||||
|
||||
Blockly.geras.Highlighter.prototype.drawJaggedEdge_ = function(row) {
|
||||
if (this.info_.RTL) {
|
||||
this.steps_ += Blockly.utils.svgPaths.lineOnAxis('H', row.width - this.highlightOffset_);
|
||||
this.steps_ += this.jaggedTeethPaths_.pathLeft;
|
||||
var remainder =
|
||||
row.height - this.jaggedTeethPaths_.height - this.highlightOffset_;
|
||||
this.steps_ += Blockly.utils.svgPaths.lineOnAxis('v', remainder);
|
||||
this.steps_ += this.jaggedTeethPaths_.pathLeft +
|
||||
Blockly.utils.svgPaths.lineOnAxis('v', remainder);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user