diff --git a/services/web/app/views/project/editor/editor.jade b/services/web/app/views/project/editor/editor.jade index fe853ea81d..ab16e9d32b 100644 --- a/services/web/app/views/project/editor/editor.jade +++ b/services/web/app/views/project/editor/editor.jade @@ -33,7 +33,7 @@ div.full-size( last-updated="editor.last_updated", cursor-position="editor.cursorPosition", goto-line="editor.gotoLine", - resize-on="layout:main:resize,layout:pdf:resize,layout:review:resize,reviewPanel:toggle", + resize-on="layout:main:resize,layout:pdf:resize,layout:review:resize,review-panel:toggle", annotations="pdf.logEntryAnnotations[editor.open_doc_id]", read-only="!permissions.write", file-name="editor.open_doc_name", diff --git a/services/web/public/coffee/ide/review-panel/controllers/ReviewPanelController.coffee b/services/web/public/coffee/ide/review-panel/controllers/ReviewPanelController.coffee index aab04a095b..f6a92a384e 100644 --- a/services/web/public/coffee/ide/review-panel/controllers/ReviewPanelController.coffee +++ b/services/web/public/coffee/ide/review-panel/controllers/ReviewPanelController.coffee @@ -59,6 +59,8 @@ define [ else scroller.off "scroll" $scope.onScroll = null + $timeout () -> + $scope.$broadcast "review-panel:toggle" $scope.$watch (() -> Object.keys($scope.reviewPanel.entries).length), (nEntries) -> $scope.reviewPanel.hasEntries = nEntries > 0