File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/vs/editor/contrib/hover/browser Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -618,10 +618,9 @@ export class ContentHoverWidget extends ResizableContentWidget {
618
618
if ( ! this . _editor || ! this . _editor . hasModel ( ) ) {
619
619
return ;
620
620
}
621
- const editorBox = dom . getDomNodePagePosition ( this . _editor . getDomNode ( ) ) ;
622
- const glyphMarginWidth = this . _editor . getLayoutInfo ( ) . glyphMarginWidth ;
623
- const leftOfContainer = this . _hover . containerDomNode . offsetLeft ;
624
- return editorBox . width + editorBox . left - leftOfContainer - glyphMarginWidth ;
621
+ const bodyBoxWidth = dom . getClientArea ( document . body ) . width ;
622
+ const horizontalPadding = 14 ;
623
+ return bodyBoxWidth - horizontalPadding ;
625
624
}
626
625
627
626
public isMouseGettingCloser ( posx : number , posy : number ) : boolean {
You can’t perform that action at this time.
0 commit comments