Add top-bar and bottom-bar elements

This commit is contained in:
simurai
2015-10-24 17:50:09 +09:00
committed by Ben Ogle
parent 85bf1f97ab
commit 3ced484718
2 changed files with 9 additions and 0 deletions

View File

@@ -74,6 +74,8 @@ class WorkspaceElement extends HTMLElement
left: @views.getView(@model.panelContainers.left)
right: @views.getView(@model.panelContainers.right)
bottom: @views.getView(@model.panelContainers.bottom)
topBar: @views.getView(@model.panelContainers.topBar)
bottomBar: @views.getView(@model.panelContainers.bottomBar)
modal: @views.getView(@model.panelContainers.modal)
@horizontalAxis.insertBefore(@panelContainers.left, @verticalAxis)
@@ -82,6 +84,9 @@ class WorkspaceElement extends HTMLElement
@verticalAxis.insertBefore(@panelContainers.top, @paneContainer)
@verticalAxis.appendChild(@panelContainers.bottom)
@insertBefore(@panelContainers.topBar, @horizontalAxis)
@appendChild(@panelContainers.bottomBar)
@appendChild(@panelContainers.modal)
this

View File

@@ -47,6 +47,8 @@ class Workspace extends Model
left: new PanelContainer({location: 'left'})
right: new PanelContainer({location: 'right'})
bottom: new PanelContainer({location: 'bottom'})
topBar: new PanelContainer({location: 'top-bar'})
bottomBar: new PanelContainer({location: 'bottom-bar'})
modal: new PanelContainer({location: 'modal'})
@subscribeToEvents()
@@ -66,6 +68,8 @@ class Workspace extends Model
left: new PanelContainer({location: 'left'})
right: new PanelContainer({location: 'right'})
bottom: new PanelContainer({location: 'bottom'})
topBar: new PanelContainer({location: 'top-bar'})
bottomBar: new PanelContainer({location: 'bottom-bar'})
modal: new PanelContainer({location: 'modal'})
@originalFontSize = null