File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/vs/editor/contrib/hover/browser Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -618,11 +618,9 @@ export class ContentHoverWidget extends ResizableContentWidget {
618
618
if ( ! this . _editor || ! this . _editor . hasModel ( ) ) {
619
619
return ;
620
620
}
621
- const editorLayoutInfo = this . _editor . getLayoutInfo ( ) ;
622
- const glyphMarginRight = editorLayoutInfo . glyphMarginLeft + editorLayoutInfo . glyphMarginWidth ;
623
- const cursorPosition = this . _editor . _getViewModel ( ) . getPrimaryCursorState ( ) . viewState . position ;
624
621
const bodyBoxWidth = dom . getClientArea ( document . body ) . width ;
625
- return bodyBoxWidth - glyphMarginRight - this . _editor . getOffsetForColumn ( cursorPosition . lineNumber , cursorPosition . column ) ;
622
+ const horizontalPadding = 14 ;
623
+ return bodyBoxWidth - horizontalPadding ;
626
624
}
627
625
628
626
public isMouseGettingCloser ( posx : number , posy : number ) : boolean {
You can’t perform that action at this time.
0 commit comments