mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
Disable autoHeight on text editor pane items
This commit is contained in:
@@ -5508,11 +5508,13 @@ describe "TextEditor", ->
|
||||
|
||||
describe "auto height", ->
|
||||
it "returns true by default but can be customized", ->
|
||||
editor = atom.workspace.buildTextEditor()
|
||||
expect(editor.getAutoHeight()).toBe(true)
|
||||
editor.update({autoHeight: false})
|
||||
expect(editor.getAutoHeight()).toBe(false)
|
||||
editor.update({autoHeight: true})
|
||||
expect(editor.getAutoHeight()).toBe(true)
|
||||
editor.destroy()
|
||||
|
||||
describe "auto width", ->
|
||||
it "returns false by default but can be customized", ->
|
||||
|
||||
@@ -561,7 +561,7 @@ class Workspace extends Model
|
||||
throw error
|
||||
|
||||
@project.bufferForPath(filePath, options).then (buffer) =>
|
||||
@textEditorRegistry.build(Object.assign({buffer, largeFileMode}, options))
|
||||
@textEditorRegistry.build(Object.assign({buffer, largeFileMode, autoHeight: false}, options))
|
||||
|
||||
handleGrammarUsed: (grammar) ->
|
||||
return unless grammar?
|
||||
|
||||
Reference in New Issue
Block a user