This commit is contained in:
Nathan Sobo
2015-01-22 09:03:50 -07:00
parent add3972477
commit b7b0ec067c

View File

@@ -21,13 +21,12 @@ LinesComponent = React.createClass
if performedInitialMeasurement
{editor, presenter, overlayDecorations, highlightDecorations, placeholderText, backgroundColor} = @props
{lineHeightInPixels, defaultCharWidth, scrollViewHeight, scopedCharacterWidthsChangeCount, cursorPixelRects} = @props
@newState = presenter.state.content
@oldState ?= {lines: {}}
@newState = presenter.state.content
{scrollWidth, scrollHeight} = @newState
{lineHeightInPixels, defaultCharWidth, scrollViewHeight, scopedCharacterWidthsChangeCount} = @props
{cursorPixelRects} = @props
style =
height: Math.max(scrollHeight, scrollViewHeight)
width: scrollWidth