Merge pull request #2829 from moniika/moniika-fix-zero-height-spacer-row-rtl

Prevent incorrectly drawing vertical line for zero height spacer rows in RTL.
This commit is contained in:
Monica Kozbial
2019-08-14 16:50:39 -07:00
committed by GitHub

View File

@@ -151,7 +151,9 @@ Blockly.blockRendering.Highlighter.prototype.drawRightSideRow = function(row) {
}
if (this.RTL_) {
this.steps_.push('H', rightEdge);
this.steps_.push('V', row.yPos + row.height - this.highlightOffset_);
if (row.height > this.highlightOffset_) {
this.steps_.push('V', row.yPos + row.height - this.highlightOffset_);
}
}
};