File tree Expand file tree Collapse file tree
src/vs/workbench/browser/parts/editor Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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` ;
Original file line number Diff line number Diff line change 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 ;
You can’t perform that action at this time.
0 commit comments