mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Merge pull request #4952 from overleaf/ae-resize-layout
Fix vertical editor pane resizing when layout changes GitOrigin-RevId: d6e01326f919994725778392ff3aa291f3b8c1ea
This commit is contained in:
parent
7ba6776b2e
commit
1736c998bf
2 changed files with 5 additions and 3 deletions
|
@ -20,7 +20,7 @@
|
|||
vertical-resizable-panes-default-size="196"
|
||||
vertical-resizable-panes-min-size="144"
|
||||
vertical-resizable-panes-max-size="336"
|
||||
vertical-resizable-panes-resize-on="left-pane-resize-all"
|
||||
vertical-resizable-panes-resize-on="layout:flat-screen:toggle"
|
||||
)
|
||||
.div(vertical-resizable-top)
|
||||
|
||||
|
|
|
@ -96,8 +96,10 @@ export default App.directive('verticalResizablePanes', (localStorage, ide) => ({
|
|||
}
|
||||
|
||||
if (resizeOn) {
|
||||
scope.$on(resizeOn, () => {
|
||||
layoutHandle.resizeAll()
|
||||
ide.$scope.$on(resizeOn, () => {
|
||||
ide.$timeout(() => {
|
||||
layoutHandle.resizeAll()
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue