Skip to content

Commit 6f60df4

Browse files
committed
1 parent ef1a74c commit 6f60df4

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

src/vs/workbench/browser/parts/editor/breadcrumbsControl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ export class BreadcrumbsControl {
365365
let pickerArrowOffset: number;
366366

367367
let data = dom.getDomNodePagePosition(event.node.firstChild as HTMLElement);
368-
let y = data.top + data.height - pickerArrowSize;
368+
let y = data.top + data.height + pickerArrowSize;
369369
if (y + maxHeight >= window.innerHeight) {
370370
maxHeight = window.innerHeight - y - 30 /* room for shadow and status bar*/;
371371
}

src/vs/workbench/browser/parts/editor/breadcrumbsPicker.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,7 @@ export abstract class BreadcrumbsPicker {
8080
const color = theme.getColor(breadcrumbsPickerBackground);
8181

8282
this._arrow = document.createElement('div');
83-
this._arrow.style.width = '0';
84-
this._arrow.style.borderStyle = 'solid';
85-
this._arrow.style.borderWidth = '8px';
83+
this._arrow.className = 'arrow';
8684
this._arrow.style.borderColor = `transparent transparent ${color.toString()}`;
8785
this._domNode.appendChild(this._arrow);
8886

@@ -186,6 +184,7 @@ export abstract class BreadcrumbsPicker {
186184

187185
this._domNode.style.height = `${totalHeight}px`;
188186
this._domNode.style.width = `${info.width}px`;
187+
this._arrow.style.top = `-${2 * info.arrowSize}px`;
189188
this._arrow.style.borderWidth = `${info.arrowSize}px`;
190189
this._arrow.style.marginLeft = `${info.arrowOffset}px`;
191190
this._treeContainer.style.height = `${treeHeight}px`;

src/vs/workbench/browser/parts/editor/media/breadcrumbscontrol.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919

2020
/* todo@joh move somewhere else */
2121

22+
.monaco-workbench .monaco-breadcrumbs-picker .arrow {
23+
position: absolute;
24+
width: 0;
25+
border-style: solid;
26+
}
27+
2228
.monaco-workbench .monaco-breadcrumbs-picker .picker-item {
2329
line-height: 22px;
2430
flex: 1;

0 commit comments

Comments
 (0)