Don't reload editor with file tree or PDF viewer hidden

This commit is contained in:
James Allen
2016-02-23 15:21:54 +00:00
parent fde7efbb9f
commit ff7632d6c7
3 changed files with 14 additions and 3 deletions
@@ -37,8 +37,12 @@ define [
# Restore previously recorded state
if (state = ide.localStorage("layout.#{name}"))?
options.west = state.west
options.east = state.east
if state.east?
if !attrs.minimumRestoreSizeEast? or (state.east.size >= attrs.minimumRestoreSizeEast and !state.east.initClosed)
options.east = state.east
if state.west?
if !attrs.minimumRestoreSizeWest? or (state.west.size >= attrs.minimumRestoreSizeWest and !state.west.initClosed)
options.west = state.west
repositionControls = () ->
state = element.layout().readState()