This commit is contained in:
Johannes Rieken 2019-03-01 13:45:43 +01:00
parent 52306b406d
commit 240eace66d
2 changed files with 4 additions and 7 deletions

View file

@ -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);
}

View file

@ -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) {