Serialize TreeView width

This commit is contained in:
Corey Johnson
2013-01-21 10:41:27 -08:00
parent 9e5c7a77d5
commit 3a5d02fccf

View File

@@ -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()