mirror of
https://github.com/atom/atom.git
synced 2026-02-09 06:05:11 -05:00
Call adjustSplitPanes after setting window state
This commit is contained in:
@@ -90,9 +90,11 @@ class RootView extends View
|
||||
@getWindowState($(elt))
|
||||
|
||||
setWindowState: (windowState, parent) ->
|
||||
adjustSplitPanes = false
|
||||
unless parent
|
||||
@panes.empty()
|
||||
@editors = []
|
||||
adjustSplitPanes = true
|
||||
parent = @panes
|
||||
|
||||
switch windowState.shift()
|
||||
@@ -111,6 +113,8 @@ class RootView extends View
|
||||
for child in windowState
|
||||
@setWindowState(child, column)
|
||||
|
||||
@adjustSplitPanes() if adjustSplitPanes
|
||||
|
||||
addPane: (view, sibling, axis, side) ->
|
||||
unless sibling.parent().hasClass(axis)
|
||||
container = $$ -> @div class: axis
|
||||
|
||||
Reference in New Issue
Block a user