mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Keep track of pdf panel width
This commit is contained in:
parent
fcc2db9ea7
commit
464c7c79d8
1 changed files with 2 additions and 0 deletions
|
@ -73,6 +73,7 @@ define [
|
|||
chatOpen: false
|
||||
pdfLayout: 'sideBySide'
|
||||
pdfHidden: false,
|
||||
pdfWidth: 0,
|
||||
reviewPanelOpen: localStorage("ui.reviewPanelOpen.#{window.project_id}")
|
||||
miniReviewPanelVisible: false,
|
||||
showAutoCompileOnboarding: window.user.betaProgram and window.showAutoCompileOnboarding
|
||||
|
@ -107,6 +108,7 @@ define [
|
|||
|
||||
$scope.$on "layout:pdf:resize", (_, layoutState) ->
|
||||
$scope.ui.pdfHidden = layoutState.east.initClosed
|
||||
$scope.ui.pdfWidth = layoutState.east.size
|
||||
|
||||
# Tracking code.
|
||||
$scope.$watch "ui.view", (newView, oldView) ->
|
||||
|
|
Loading…
Reference in a new issue