mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-29 12:31:35 +00:00
Merge remote-tracking branch 'origin/master' into afc-multiple-managers
This commit is contained in:
commit
a72dec4b6e
3 changed files with 9 additions and 1 deletions
|
@ -26,7 +26,10 @@ div.full-size(
|
|||
'rp-loading-threads': reviewPanel.loadingThreads,\
|
||||
}"
|
||||
)
|
||||
.loading-panel(ng-show="!editor.sharejs_doc || editor.opening")
|
||||
.loading-panel(
|
||||
ng-show="!editor.sharejs_doc || editor.opening",
|
||||
style=showRichText ? "top: 32px" : "",
|
||||
)
|
||||
span(ng-show="editor.open_doc_id")
|
||||
i.fa.fa-spin.fa-refresh
|
||||
| #{translate("loading")}...
|
||||
|
|
|
@ -37,6 +37,9 @@ define [], () ->
|
|||
onCursorChange: () =>
|
||||
@emitCursorUpdateEvent()
|
||||
|
||||
onSyncToPdf: () =>
|
||||
@$scope.$emit "cursor:#{@$scope.name}:syncToPdf"
|
||||
|
||||
storeFirstVisibleLine: () ->
|
||||
if @doc_id?
|
||||
docPosition = @localStorage("doc.position.#{@doc_id}") || {}
|
||||
|
|
|
@ -718,6 +718,8 @@ define [
|
|||
.then (highlights) ->
|
||||
$scope.pdf.highlights = highlights
|
||||
|
||||
ide.$scope.$on "cursor:editor:syncToPdf", $scope.syncToPdf
|
||||
|
||||
$scope.syncToCode = () ->
|
||||
synctex
|
||||
.syncToCode($scope.pdf.position, includeVisualOffset: true, fromPdfPosition: true)
|
||||
|
|
Loading…
Reference in a new issue