File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
coderibbon-theia/src/browser Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,9 @@ export class CodeRibbonTheiaPatch extends TabPanel {
98
98
this . tabBar . tabsMovable = true ;
99
99
this . tabBar . allowDeselect = false ;
100
100
101
- this . refitBoxLayout ( ) ;
101
+ // HACK to do this after other updates have been applied
102
+ setTimeout ( ( ) => this . refitBoxLayout ( ) ) ;
103
+ // this.refitBoxLayout();
102
104
}
103
105
104
106
/**
@@ -142,8 +144,8 @@ export class CodeRibbonTheiaPatch extends TabPanel {
142
144
}
143
145
144
146
// TODO find a better place to trigger this
145
- // temporary HACK until I find a working solution to trigger it elsewhere
146
- // (this._tabBarMutationObserver does not seem to be working)
147
+ // HACK until I find a working solution to trigger it elsewhere
148
+ // (this._tabBarMutationObserver does not seem to be working and the one in cr_init is too early? )
147
149
this . refitBoxLayout ( ) ;
148
150
}
149
151
You can’t perform that action at this time.
0 commit comments