mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Style lines with inline styles for performance
This commit is contained in:
@@ -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 += " "
|
||||
|
||||
Reference in New Issue
Block a user