mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
No scrolling on editor tabs when enabling them (fixes #46845)
This commit is contained in:
parent
4b95443bff
commit
4da5d23e0a
|
@ -288,6 +288,7 @@ export class EditorGroupsControl extends Themable implements IEditorGroupsContro
|
|||
titleControl.dispose();
|
||||
titleContainer.empty();
|
||||
this.createTitleControl(this.stacks.groupAt(position), this.silos[position], titleContainer, this.getInstantiationService(position));
|
||||
this.layoutTitleControl(position);
|
||||
}
|
||||
|
||||
// Refresh title when layout options change
|
||||
|
@ -2166,16 +2167,18 @@ export class EditorGroupsControl extends Themable implements IEditorGroupsContro
|
|||
});
|
||||
|
||||
// Layout title controls
|
||||
POSITIONS.forEach(position => {
|
||||
const siloWidth = this.layoutVertically ? this.silosSize[position] : this.dimension.width;
|
||||
|
||||
this.getTitleAreaControl(position).layout(new Dimension(siloWidth, EditorGroupsControl.EDITOR_TITLE_HEIGHT));
|
||||
});
|
||||
POSITIONS.forEach(position => this.layoutTitleControl(position));
|
||||
|
||||
// Update minimized state
|
||||
this.updateMinimizedState();
|
||||
}
|
||||
|
||||
private layoutTitleControl(position: Position): void {
|
||||
const siloWidth = this.layoutVertically ? this.silosSize[position] : this.dimension.width;
|
||||
|
||||
this.getTitleAreaControl(position).layout(new Dimension(siloWidth, EditorGroupsControl.EDITOR_TITLE_HEIGHT));
|
||||
}
|
||||
|
||||
private layoutEditor(position: Position): void {
|
||||
const editorSize = this.silosSize[position];
|
||||
const editor = this.visibleEditors[position];
|
||||
|
|
Loading…
Reference in a new issue