mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Use presenter to supply scrollHeight to lines component
This commit is contained in:
@@ -20,12 +20,12 @@ LinesComponent = React.createClass
|
||||
{performedInitialMeasurement, cursorBlinkPeriod, cursorBlinkResumeDelay} = @props
|
||||
|
||||
if performedInitialMeasurement
|
||||
{editor, presenter, overlayDecorations, highlightDecorations, scrollHeight, placeholderText, backgroundColor} = @props
|
||||
{editor, presenter, overlayDecorations, highlightDecorations, placeholderText, backgroundColor} = @props
|
||||
|
||||
@newState = presenter.state.content
|
||||
@oldState ?= {lines: {}}
|
||||
|
||||
{scrollWidth} = @newState
|
||||
{scrollWidth, scrollHeight} = @newState
|
||||
{lineHeightInPixels, defaultCharWidth, scrollViewHeight, scopedCharacterWidthsChangeCount} = @props
|
||||
{scrollTop, scrollLeft, cursorPixelRects} = @props
|
||||
style =
|
||||
|
||||
Reference in New Issue
Block a user