Merge pull request #9142 from overleaf/ae-outline-pane-height-fix

Ensure that the outline pane has appropriate height when collapsed

GitOrigin-RevId: 806d5cbeacbeed5df05712a5f3d85ee535442147
This commit is contained in:
Alf Eaton 2022-08-05 10:43:16 +01:00 committed by Copybot
parent bb8ad57a9d
commit 982897dcb9

View file

@ -72,16 +72,13 @@ export default App.directive('verticalResizablePanes', (localStorage, ide) => ({
if (toggledExternally) { if (toggledExternally) {
scope.$on(toggledExternally, (e, open) => { scope.$on(toggledExternally, (e, open) => {
let newSize = defaultSize ?? 'auto'
if (open) { if (open) {
if (storedSize) {
newSize = storedSize
}
enableResizer() enableResizer()
layoutHandle.sizePane('south', storedSize ?? defaultSize ?? 'auto')
} else { } else {
disableResizer() disableResizer()
layoutHandle.sizePane('south', 'auto')
} }
layoutHandle.sizePane('south', newSize)
}) })
} }