Use flexbox to arrange panes

This commit is contained in:
probablycorey
2014-01-08 13:39:58 -08:00
parent 0471619269
commit 7eba9d3a23
7 changed files with 37 additions and 118 deletions

View File

@@ -127,14 +127,6 @@ class PaneContainer extends View
return pane if view?
null
adjustPaneDimensions: ->
if root = @getRoot()
root.css(width: '100%', height: '100%', top: 0, left: 0)
root.adjustDimensions()
removeEmptyPanes: ->
for pane in @getPanes() when pane.getItems().length == 0
pane.remove()
afterAttach: ->
@adjustPaneDimensions()