From 78d87d8f7c0ddcb540e2fbf3db91e94ccd70e0f9 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Wed, 21 Jan 2015 16:56:31 -0700 Subject: [PATCH] Use presenter to supply scrollHeight to lines component --- src/lines-component.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lines-component.coffee b/src/lines-component.coffee index 7a0f74a97..c2bd8e22a 100644 --- a/src/lines-component.coffee +++ b/src/lines-component.coffee @@ -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 =