diff --git a/src/vs/workbench/browser/parts/editor/breadcrumbsControl.ts b/src/vs/workbench/browser/parts/editor/breadcrumbsControl.ts index 0511af5b128c8..a7842ff169180 100644 --- a/src/vs/workbench/browser/parts/editor/breadcrumbsControl.ts +++ b/src/vs/workbench/browser/parts/editor/breadcrumbsControl.ts @@ -140,7 +140,6 @@ export class BreadcrumbsControl { readonly domNode: HTMLDivElement; private readonly _widget: BreadcrumbsWidget; - private _dimension: dom.Dimension; private _disposables = new Array(); private _breadcrumbsDisposables = new Array(); @@ -191,7 +190,6 @@ export class BreadcrumbsControl { } layout(dim: dom.Dimension): void { - this._dimension = dim; this._widget.layout(dim); } @@ -296,7 +294,7 @@ export class BreadcrumbsControl { getAnchor: () => { let pickerHeight = 330; - let pickerWidth = Math.max(this._dimension.width / 2.59, dom.getTotalWidth(event.node)); + let pickerWidth = Math.max(window.innerWidth / 4.17, dom.getTotalWidth(event.node)); let pickerArrowSize = 8; let pickerArrowOffset: number;