Add #horizontal flexbox container to RootView. TreeView places itself inside it.

This commit is contained in:
Corey Johnson & Nathan Sobo
2012-04-27 10:24:30 -06:00
parent f37017b94c
commit 466ad3cfc1
3 changed files with 7 additions and 3 deletions

View File

@@ -18,7 +18,8 @@ module.exports =
class RootView extends View
@content: ->
@div id: 'root-view', tabindex: -1, =>
@div id: 'panes', outlet: 'panes'
@div id: 'horizontal', outlet: 'horizontal', =>
@div id: 'panes', outlet: 'panes'
@deserialize: (viewState) ->
new RootView(viewState)

View File

@@ -7,7 +7,7 @@ module.exports =
class TreeView extends View
@activate: (rootView) ->
requireStylesheet 'tree-view.css'
rootView.prepend(new TreeView(rootView))
rootView.horizontal.prepend(new TreeView(rootView))
@content: (rootView) ->
@div class: 'tree-view', tabindex: -1, =>