Esse commit está contido em:
Nathan Sobo
2015-01-22 09:03:50 -07:00
commit b7b0ec067c
+3 -4
Ver Arquivo
@@ -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