From cd5f0c0047a556c91e4903b1f9f02cef0c42e4f8 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Mon, 19 May 2014 15:20:42 -0600 Subject: [PATCH] Update the screenRow on the line element's dataset in ::updateLineNode --- src/lines-component.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lines-component.coffee b/src/lines-component.coffee index 1cae8b8fb..bc067e95b 100644 --- a/src/lines-component.coffee +++ b/src/lines-component.coffee @@ -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