diff --git a/src/vs/workbench/contrib/outline/browser/outlinePane.ts b/src/vs/workbench/contrib/outline/browser/outlinePane.ts index 1d8593de9e3d40e1c9d208c6b257eefd8d18409a..d57303ec430f9809b65fee9baee2a98c87a27215 100644 --- a/src/vs/workbench/contrib/outline/browser/outlinePane.ts +++ b/src/vs/workbench/contrib/outline/browser/outlinePane.ts @@ -52,6 +52,7 @@ export class OutlinePane extends ViewPane { private _progressBar!: ProgressBar; private _treeContainer!: HTMLElement; private _tree?: WorkbenchDataTree, any, FuzzyScore>; + private _treeDimensions?: dom.Dimension; private _treeStates = new LRUCache(10); private readonly _ctxFocused: IContextKey; @@ -137,6 +138,7 @@ export class OutlinePane extends ViewPane { protected layoutBody(height: number, width: number): void { super.layoutBody(height, width); this._tree?.layout(height, width); + this._treeDimensions = new dom.Dimension(width, height); } collapseAll(): void { @@ -294,6 +296,7 @@ export class OutlinePane extends ViewPane { })); // last: set tree property + tree.layout(this._treeDimensions?.height, this._treeDimensions?.width); this._tree = tree; this._editorDisposables.add(toDisposable(() => { tree.dispose();