mirror of
https://github.com/atom/atom.git
synced 2026-02-18 10:31:54 -05:00
🎨
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user