From 982897dcb9b6ef5eacb111524f7b479a764e234d Mon Sep 17 00:00:00 2001 From: Alf Eaton Date: Fri, 5 Aug 2022 10:43:16 +0100 Subject: [PATCH] Merge pull request #9142 from overleaf/ae-outline-pane-height-fix Ensure that the outline pane has appropriate height when collapsed GitOrigin-RevId: 806d5cbeacbeed5df05712a5f3d85ee535442147 --- .../frontend/js/ide/directives/verticalResizablePanes.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/services/web/frontend/js/ide/directives/verticalResizablePanes.js b/services/web/frontend/js/ide/directives/verticalResizablePanes.js index 83611fde0d..e3aee964f3 100644 --- a/services/web/frontend/js/ide/directives/verticalResizablePanes.js +++ b/services/web/frontend/js/ide/directives/verticalResizablePanes.js @@ -72,16 +72,13 @@ export default App.directive('verticalResizablePanes', (localStorage, ide) => ({ if (toggledExternally) { scope.$on(toggledExternally, (e, open) => { - let newSize = defaultSize ?? 'auto' if (open) { - if (storedSize) { - newSize = storedSize - } enableResizer() + layoutHandle.sizePane('south', storedSize ?? defaultSize ?? 'auto') } else { disableResizer() + layoutHandle.sizePane('south', 'auto') } - layoutHandle.sizePane('south', newSize) }) }