diff --git a/services/web/public/coffee/ide/pdfng/directives/pdfJs.coffee b/services/web/public/coffee/ide/pdfng/directives/pdfJs.coffee index 7123cfa64b..43ab26f6f5 100644 --- a/services/web/public/coffee/ide/pdfng/directives/pdfJs.coffee +++ b/services/web/public/coffee/ide/pdfng/directives/pdfJs.coffee @@ -71,6 +71,9 @@ define [ scope.$on 'pdfDoubleClick', (event, e) -> scope.dblClickCallback?(page: e.page - 1, offset: { top: e.y, left: e.x }) + scope.$on 'flash-controls', () -> + flashControls() + scope.$watch "pdfSrc", (url) -> if url scope.loading = true diff --git a/services/web/public/coffee/ide/pdfng/directives/pdfViewer.coffee b/services/web/public/coffee/ide/pdfng/directives/pdfViewer.coffee index d28bddc024..93fe7a0952 100644 --- a/services/web/public/coffee/ide/pdfng/directives/pdfViewer.coffee +++ b/services/web/public/coffee/ide/pdfng/directives/pdfViewer.coffee @@ -262,6 +262,7 @@ define [ element.innerHeight(), element.innerWidth() ] + scope.$emit 'flash-controls' #scope.$apply() scope.$on 'layout:main:resize', () ->