mirror of
https://github.com/atom/atom.git
synced 2026-02-13 08:04:56 -05:00
Serialize TreeView width
This commit is contained in:
@@ -36,6 +36,7 @@ class TreeView extends ScrollView
|
||||
treeView.selectEntryForPath(state.selectedPath)
|
||||
treeView.focusAfterAttach = state.hasFocus
|
||||
treeView.scrollTopAfterAttach = state.scrollTop
|
||||
treeView.width(state.width)
|
||||
treeView.attach() if state.attached
|
||||
treeView
|
||||
|
||||
@@ -81,6 +82,7 @@ class TreeView extends ScrollView
|
||||
hasFocus: @hasFocus()
|
||||
attached: @hasParent()
|
||||
scrollTop: @scrollTop()
|
||||
width: @width()
|
||||
|
||||
deactivate: ->
|
||||
@root?.unwatchEntries()
|
||||
|
||||
Reference in New Issue
Block a user