mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
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:
parent
bb8ad57a9d
commit
982897dcb9
1 changed files with 2 additions and 5 deletions
|
@ -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)
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue