This commit is contained in:
Nathan Sobo
2014-05-14 10:16:29 -06:00
parent e9bff37e06
commit c60e5d90fd

View File

@@ -57,12 +57,12 @@ LinesComponent = React.createClass
false
componentDidUpdate: (prevProps) ->
@updateRenderedLines()
@updateLines()
@measureLineHeightAndCharWidth() unless isEqualForProperties(prevProps, @props, 'fontSize', 'fontFamily', 'lineHeight')
@clearScopedCharWidths() unless isEqualForProperties(prevProps, @props, 'fontSize', 'fontFamily')
@measureCharactersInNewLines() unless @props.scrollingVertically
updateRenderedLines: ->
updateLines: ->
{editor, visibleRowRange, showIndentGuide, selectionChanged} = @props
[startRow, endRow] = visibleRowRange
visibleLines = editor.linesForScreenRows(startRow, endRow - 1)