Use Math.round for positions that are at the end of a line

This commit is contained in:
Antonio Scandurra
2017-04-21 09:31:18 +02:00
parent c338227dab
commit a890528ec9

View File

@@ -2069,7 +2069,7 @@ class TextEditorComponent {
lineNodeClientLeft = lineNode.getBoundingClientRect().left
}
positions.set(nextColumnToMeasure, lastTextNodeRight - lineNodeClientLeft)
positions.set(nextColumnToMeasure, Math.round(lastTextNodeRight - lineNodeClientLeft))
}
}