also fix width issue when not using tabs, #56545

This commit is contained in:
Johannes Rieken 2018-08-16 11:14:15 +02:00
parent 0430911b98
commit b00ab5288f

View file

@ -140,7 +140,6 @@ export class BreadcrumbsControl {
readonly domNode: HTMLDivElement;
private readonly _widget: BreadcrumbsWidget;
private _dimension: dom.Dimension;
private _disposables = new Array<IDisposable>();
private _breadcrumbsDisposables = new Array<IDisposable>();
@ -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;