1
0
Fork 0
mirror of https://github.com/overleaf/overleaf.git synced 2025-04-08 12:41:13 +00:00

Merge pull request from overleaf/ae-resize-sidebar-layout

Fix editor resizing when editor is hidden

GitOrigin-RevId: 1baf4c88bec459b1669d708609d4425891ebfd05
This commit is contained in:
Alf Eaton 2021-09-03 10:08:35 +01:00 committed by Copybot
parent 1736c998bf
commit eede3a26b6
2 changed files with 4 additions and 2 deletions
services/web
app/views/project
frontend/js/ide/directives

View file

@ -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

View file

@ -162,7 +162,9 @@ export default App.directive('layout', ($parse, $compile, ide) => ({
}
}
return element.layout().resizeAll()
ide.$timeout(() => {
element.layout().resizeAll()
})
}
element.layout(options)