 
   getAutoHeight: -> @autoHeight
 
-  setAutoHeight: (autoHeight) ->
-    if autoHeight isnt @autoHeight
-      @autoHeight = autoHeight
-      @editorElement?.didChangeAutoHeight()
+  setAutoHeight: (autoHeight) -> @update({autoHeight})
 
   setWidth: (width, reentrant=false) ->
     if reentrant

  # Experimental: Show or hide the line numbers in the editor's gutter.
  #
  # * `showLineNumbers` a {Boolean} indicating whether to show the line numbers.
  setShowLineNumbers: (showLineNumbers) ->
    if showLineNumbers isnt @showLineNumbers
      @showLineNumbers = showLineNumbers
      @presenter?.didChangeShowLineNumbers()

  # Experimental: Are line numbers enabled for this editor?
  #

  # Essential: Retrieves the greyed out placeholder of a mini editor.
  #
  # Returns a {String}.
  getPlaceholderText: -> @placeholderText

  # Essential: Set the greyed out placeholder of a mini editor. Placeholder text
  # will be displayed when the editor has no content.
  #
  # * `placeholderText` {String} text that is displayed when the editor has no content.
  setPlaceholderText: (placeholderText) -> @update({placeholderText})

  pixelPositionForBufferPosition: (bufferPosition) ->
    Grim.deprecate("This method is deprecated on the model layer. Use `TextEditorElement::pixelPositionForBufferPosition` instead")
