mirror of
https://github.com/atom/atom.git
synced 2026-01-25 06:48:28 -05:00
Default autoWidth in getter method to match autoHeight
This commit is contained in:
@@ -144,7 +144,6 @@ class TextEditor extends Model
|
||||
@selections = []
|
||||
@hasTerminatedPendingState = false
|
||||
|
||||
@autoWidth ?= false
|
||||
@mini ?= false
|
||||
@scrollPastEnd ?= true
|
||||
@showInvisibles ?= true
|
||||
@@ -3544,6 +3543,8 @@ class TextEditor extends Model
|
||||
|
||||
getAutoHeight: -> @autoHeight ? true
|
||||
|
||||
getAutoWidth: -> @autoWidth ? false
|
||||
|
||||
setWidth: (width, reentrant=false) ->
|
||||
if reentrant
|
||||
@update({width})
|
||||
@@ -3556,9 +3557,6 @@ class TextEditor extends Model
|
||||
Grim.deprecate("This is now a view method. Call TextEditorElement::getWidth instead.")
|
||||
@width
|
||||
|
||||
getAutoWidth: ->
|
||||
@autoWidth
|
||||
|
||||
# Experimental: Scroll the editor such that the given screen row is at the
|
||||
# top of the visible area.
|
||||
setFirstVisibleScreenRow: (screenRow, fromView) ->
|
||||
|
||||
Reference in New Issue
Block a user