From 829ccb66418cc13811b3710543ae66bdbbe5161e Mon Sep 17 00:00:00 2001 From: James Allen Date: Tue, 15 Nov 2016 16:21:45 +0000 Subject: [PATCH] Resize on toggling review panel --- services/web/app/views/project/editor/editor.jade | 2 +- .../ide/review-panel/controllers/ReviewPanelController.coffee | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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