Skip to content

Commit

Permalink
also fix width issue when not using tabs, #56545
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed Aug 16, 2018
1 parent 0430911 commit b00ab52
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/vs/workbench/browser/parts/editor/breadcrumbsControl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>();
Expand Down Expand Up @@ -191,7 +190,6 @@ export class BreadcrumbsControl {
}

layout(dim: dom.Dimension): void {
this._dimension = dim;
this._widget.layout(dim);
}

Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit b00ab52

Please sign in to comment.