mirror of
https://github.com/atom/atom.git
synced 2026-02-15 09:05:58 -05:00
Construct LinesComponent with visibility param to avoid redundant update
This commit is contained in:
@@ -116,11 +116,10 @@ TextEditorComponent = React.createClass
|
||||
|
||||
@mountGutterComponent() if @gutterVisible
|
||||
|
||||
@linesComponent = new LinesComponent({@presenter, hostElement, useShadowDOM})
|
||||
scrollViewNode = @refs.scrollView.getDOMNode()
|
||||
horizontalScrollbarNode = @refs.horizontalScrollbar.getDOMNode()
|
||||
@linesComponent = new LinesComponent({@presenter, hostElement, useShadowDOM, visible: @isVisible()})
|
||||
scrollViewNode.insertBefore(@linesComponent.domNode, horizontalScrollbarNode)
|
||||
@linesComponent.updateSync(@isVisible())
|
||||
|
||||
@observeEditor()
|
||||
@listenForDOMEvents()
|
||||
|
||||
Reference in New Issue
Block a user