mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-07-01 06:36:22 +00:00
Fix monaco editor overflowing from container (partial)
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user