Merge remote-tracking branch 'origin/master' into afc-multiple-managers

This commit is contained in:
Alberto Fernández Capel 2018-07-16 09:45:11 +01:00
commit a72dec4b6e
3 changed files with 9 additions and 1 deletions

View file

@ -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")}...

View file

@ -37,6 +37,9 @@ define [], () ->
onCursorChange: () =>
@emitCursorUpdateEvent()
onSyncToPdf: () =>
@$scope.$emit "cursor:#{@$scope.name}:syncToPdf"
storeFirstVisibleLine: () ->
if @doc_id?
docPosition = @localStorage("doc.position.#{@doc_id}") || {}

View file

@ -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)