Skip to content

Commit 8ff2722

Browse files
author
Benjamin Pasero
committed
1 parent 3b95170 commit 8ff2722

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/vs/workbench/browser/parts/editor/tabsTitleControl.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -953,13 +953,13 @@ export class TabsTitleControl extends TitleControl {
953953
}
954954

955955
layout(dimension: Dimension): void {
956+
this.dimension = dimension;
957+
956958
const activeTab = this.getTab(this.group.activeEditor);
957-
if (!activeTab || !dimension) {
959+
if (!activeTab || !this.dimension) {
958960
return;
959961
}
960962

961-
this.dimension = dimension;
962-
963963
// The layout of tabs can be an expensive operation because we access DOM properties
964964
// that can result in the browser doing a full page layout to validate them. To buffer
965965
// this a little bit we try at least to schedule this work on the next animation frame.

0 commit comments

Comments
 (0)