Update the screenRow on the line element's dataset in ::updateLineNode

This commit is contained in:
Nathan Sobo
2014-05-19 15:20:42 -06:00
parent 5716c7c574
commit cd5f0c0047

View File

@@ -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