mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-08 12:41:13 +00:00
Merge pull request #4953 from overleaf/ae-resize-sidebar-layout
Fix editor resizing when editor is hidden GitOrigin-RevId: 1baf4c88bec459b1669d708609d4425891ebfd05
This commit is contained in:
parent
1736c998bf
commit
eede3a26b6
2 changed files with 4 additions and 2 deletions
services/web
|
@ -92,7 +92,7 @@ block content
|
|||
ng-class="{ 'ide-history-open' : (ui.view == 'history' && history.isV2) }",
|
||||
layout="main",
|
||||
ng-hide="state.loading",
|
||||
resize-on="layout:chat:resize,history:toggle",
|
||||
resize-on="layout:chat:resize,history:toggle,layout:flat-screen:toggle",
|
||||
minimum-restore-size-west="130"
|
||||
custom-toggler-pane=hasFeature('custom-togglers') ? "west" : false
|
||||
custom-toggler-msg-when-open=hasFeature('custom-togglers') ? translate("tooltip_hide_filetree") : false
|
||||
|
|
|
@ -162,7 +162,9 @@ export default App.directive('layout', ($parse, $compile, ide) => ({
|
|||
}
|
||||
}
|
||||
|
||||
return element.layout().resizeAll()
|
||||
ide.$timeout(() => {
|
||||
element.layout().resizeAll()
|
||||
})
|
||||
}
|
||||
|
||||
element.layout(options)
|
||||
|
|
Loading…
Add table
Reference in a new issue