From a890528ec9def049c8cf41e262e831ada451e99e Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Fri, 21 Apr 2017 09:31:18 +0200 Subject: [PATCH] Use `Math.round` for positions that are at the end of a line --- src/text-editor-component.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/text-editor-component.js b/src/text-editor-component.js index 829d319ae..0bcce166d 100644 --- a/src/text-editor-component.js +++ b/src/text-editor-component.js @@ -2069,7 +2069,7 @@ class TextEditorComponent { lineNodeClientLeft = lineNode.getBoundingClientRect().left } - positions.set(nextColumnToMeasure, lastTextNodeRight - lineNodeClientLeft) + positions.set(nextColumnToMeasure, Math.round(lastTextNodeRight - lineNodeClientLeft)) } }