Skip to content

Commit a14b8a6

Browse files
committed
just delay fit... until better solution is found
1 parent 57b80d7 commit a14b8a6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

coderibbon-theia/src/browser/cr-patch.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@ export class CodeRibbonTheiaPatch extends TabPanel {
9898
this.tabBar.tabsMovable = true;
9999
this.tabBar.allowDeselect = false;
100100

101-
this.refitBoxLayout();
101+
// HACK to do this after other updates have been applied
102+
setTimeout(() => this.refitBoxLayout());
103+
// this.refitBoxLayout();
102104
}
103105

104106
/**
@@ -142,8 +144,8 @@ export class CodeRibbonTheiaPatch extends TabPanel {
142144
}
143145

144146
// 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?)
147149
this.refitBoxLayout();
148150
}
149151

0 commit comments

Comments
 (0)