Fix monaco editor overflowing from container (partial)

This commit is contained in:
Kristóf Tóth
2018-06-12 19:09:11 +02:00
parent 0fbaf2275e
commit 0fc90126a7
3 changed files with 8 additions and 14 deletions

View File

@ -93,8 +93,8 @@ export class DashboardComponent implements OnInit, OnDestroy {
setLayout(layout: string) {
this.layout = layout;
// We need to trigger a 'resize' event manually, otherwise ace editor stays collapsed
// Ace editors 'resize' event listener requires a parameter of force=true
// We need to trigger a 'resize' event manually, otherwise editor stays collapsed
// editor 'resize' event listener requires a parameter of force=true
setTimeout(() => window.dispatchEvent(new Event('resize', {force: true} as any)), 0);
}