mirror of
https://github.com/Microsoft/vscode
synced 2024-10-12 06:17:18 +00:00
Correct DPI when multiple monitors are used
This commit is contained in:
parent
9687542e42
commit
6ec7f2675e
|
@ -279,6 +279,11 @@ export class IssueMainService implements IIssueMainService {
|
|||
position = this.getWindowPosition(this.processExplorerParentWindow, 800, 500);
|
||||
}
|
||||
|
||||
// Correct dimensions to take scale/dpr into account
|
||||
const displayToUse = screen.getDisplayNearestPoint({ x: position.x!, y: position.y! });
|
||||
position.width! /= displayToUse.scaleFactor;
|
||||
position.height! /= displayToUse.scaleFactor;
|
||||
|
||||
this.processExplorerWindow = this.createBrowserWindow(position, processExplorerWindowConfigUrl, {
|
||||
backgroundColor: data.styles.backgroundColor,
|
||||
title: localize('processExplorer', "Process Explorer"),
|
||||
|
|
Loading…
Reference in a new issue