Take autoHeight as an argument.

This commit is contained in:
joshaber
2016-02-25 17:11:04 -05:00
parent ff0b9e30a9
commit dfd3e1b948
2 changed files with 5 additions and 10 deletions

View File

@@ -3154,11 +3154,7 @@ class TextEditor extends Model
# Get the Element for the editor.
getElement: ->
unless @editorElement?
@editorElement = new TextEditorElement().initialize(this, atom, @ignoreScrollPastEnd)
unless @autoHeight
@editorElement.disableAutoHeight()
@editorElement
@editorElement ?= new TextEditorElement().initialize(this, atom, @autoHeight, @ignoreScrollPastEnd)
# Essential: Retrieves the greyed out placeholder of a mini editor.
#