diff --git a/core/renderers/block_rendering_rewrite/block_render_draw_highlight.js b/core/renderers/block_rendering_rewrite/block_render_draw_highlight.js index 0a9834234..98ccfb5c1 100644 --- a/core/renderers/block_rendering_rewrite/block_render_draw_highlight.js +++ b/core/renderers/block_rendering_rewrite/block_render_draw_highlight.js @@ -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_); + } } };