Style lines with inline styles for performance

This commit is contained in:
Nathan Sobo
2014-05-15 11:00:39 -06:00
parent c87bc57f9e
commit 7dfe829fc8
2 changed files with 1 additions and 9 deletions

View File

@@ -105,7 +105,7 @@ LinesComponent = React.createClass
{editor, mini, showIndentGuide} = @props
{tokens, text, lineEnding, fold, isSoftWrapped, indentLevel} = line
translate3d = @buildTranslate3d(top, left)
lineHTML = "<div class=\"line\" style=\"top: #{top}px;\">"
lineHTML = "<div class=\"line\" style=\"position: absolute; top: #{top}px;\">"
if text is ""
lineHTML += "&nbsp;"