mirror of
https://github.com/Microsoft/vscode
synced 2024-10-06 11:26:07 +00:00
fix #69557
This commit is contained in:
parent
52306b406d
commit
240eace66d
|
@ -150,7 +150,7 @@ export abstract class BreadcrumbsPicker {
|
|||
this._arrow.style.marginLeft = `${this._layoutInfo.arrowOffset}px`;
|
||||
this._treeContainer.style.height = `${treeHeight}px`;
|
||||
this._treeContainer.style.width = `${this._layoutInfo.width}px`;
|
||||
this._tree.layout();
|
||||
this._tree.layout(treeHeight, this._layoutInfo.width);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -239,7 +239,6 @@ export class OutlinePanel extends ViewletPanel {
|
|||
private _editorDisposables = new Array<IDisposable>();
|
||||
private _outlineViewState = new OutlineViewState();
|
||||
private _requestOracle?: RequestOracle;
|
||||
private _cachedHeight: number;
|
||||
private _domNode: HTMLElement;
|
||||
private _message: HTMLDivElement;
|
||||
private _inputContainer: HTMLDivElement;
|
||||
|
@ -379,10 +378,8 @@ export class OutlinePanel extends ViewletPanel {
|
|||
}));
|
||||
}
|
||||
|
||||
protected layoutBody(height: number): void {
|
||||
if (height !== this._cachedHeight) {
|
||||
this._tree.layout(height);
|
||||
}
|
||||
protected layoutBody(height: number, width: number): void {
|
||||
this._tree.layout(height, width);
|
||||
}
|
||||
|
||||
getActions(): IAction[] {
|
||||
|
@ -525,7 +522,7 @@ export class OutlinePanel extends ViewletPanel {
|
|||
await this._tree.setInput(newModel, state);
|
||||
}
|
||||
|
||||
this.layoutBody(this._cachedHeight);
|
||||
this._tree.layout();
|
||||
|
||||
// transfer focus from domNode to the tree
|
||||
if (this._domNode === document.activeElement) {
|
||||
|
|
Loading…
Reference in a new issue