mirror of
https://github.com/Microsoft/vscode
synced 2024-10-31 10:00:51 +00:00
also fix width issue when not using tabs, #56545
This commit is contained in:
parent
0430911b98
commit
b00ab5288f
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue