mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Update the screenRow on the line element's dataset in ::updateLineNode
This commit is contained in:
@@ -179,6 +179,7 @@ LinesComponent = React.createClass
|
||||
{lineHeight} = @props
|
||||
lineNode = @lineNodesByLineId[line.id]
|
||||
lineNode.style.top = screenRow * lineHeight + 'px'
|
||||
lineNode.dataset.screenRow = screenRow
|
||||
@screenRowsByLineId[line.id] = screenRow
|
||||
@lineIdsByScreenRow[screenRow] = line.id
|
||||
|
||||
|
||||
Reference in New Issue
Block a user