mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge branch 'master' of github.com:sharelatex/web-sharelatex
This commit is contained in:
commit
b46576e91f
1 changed files with 11 additions and 7 deletions
|
@ -44,20 +44,24 @@ define [
|
||||||
###
|
###
|
||||||
return @
|
return @
|
||||||
|
|
||||||
hide: () -> @$el.hide()
|
hide: () ->
|
||||||
|
@hidden = true
|
||||||
|
@$el.hide()
|
||||||
|
|
||||||
show: () ->
|
show: () ->
|
||||||
|
@hidden = false
|
||||||
|
@showIfNotHiddenAndOpen()
|
||||||
|
|
||||||
|
showIfNotHiddenAndOpen: () ->
|
||||||
state = @ide.editor.$splitter.layout().readState()
|
state = @ide.editor.$splitter.layout().readState()
|
||||||
if !state.east?.initClosed
|
if !@hidden and !state.east?.initClosed
|
||||||
@$el.show()
|
@$el.show()
|
||||||
|
else
|
||||||
|
@$el.hide()
|
||||||
|
|
||||||
repositionLeft: () ->
|
repositionLeft: () ->
|
||||||
state = @ide.editor.$splitter.layout().readState()
|
state = @ide.editor.$splitter.layout().readState()
|
||||||
if state.east?
|
if state.east?
|
||||||
@$el.css({right: state.east.size - 8})
|
@$el.css({right: state.east.size - 8})
|
||||||
if state.east.initClosed
|
@showIfNotHiddenAndOpen();
|
||||||
@hide()
|
|
||||||
else
|
|
||||||
@show()
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue