mirror of
https://github.com/atom/atom.git
synced 2026-02-10 06:35:00 -05:00
Add #horizontal flexbox container to RootView. TreeView places itself inside it.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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, =>
|
||||
|
||||
Reference in New Issue
Block a user