Prevent incorrectly drawing vertical line for zero height spacer rows.

This commit is contained in:
kozbial
2019-08-14 16:16:48 -07:00
parent 4a10ff833d
commit c4165e92b8

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_);
}
}
};