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 {
618618 if ( ! this . _editor || ! this . _editor . hasModel ( ) ) {
619619 return ;
620620 }
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 ;
625624 }
626625
627626 public isMouseGettingCloser ( posx : number , posy : number ) : boolean {
You can’t perform that action at this time.
0 commit comments