Skip to content

Commit

Permalink
reduce flicker when moving between panel/actbar
Browse files Browse the repository at this point in the history
  • Loading branch information
sbatten committed May 6, 2020
1 parent 8a56212 commit bd0efff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vs/workbench/browser/parts/compositeBar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,8 @@ export class CompositeBar extends Widget implements ICompositeBar {
// Add to the model
if (this.model.add(id, name, order)) {
this.computeSizes([this.model.findItem(id)]);
this.updateCompositeSwitcher();
// Set timeout helps prevent flicker
setTimeout(() => this.updateCompositeSwitcher(), 0);
}
}

Expand Down

0 comments on commit bd0efff

Please sign in to comment.