Using the following code, when the scale function in the display settings is turned on, the height and width of the window cannot be set normally. The same code with electron's native BrowserWindow can work properly (replace const scaleFactor = display.scaleFactor with const scaleFactor = 1)
OS information
Using the following code, when the scale function in the display settings is turned on, the height and width of the window cannot be set normally. The same code with electron's native BrowserWindow can work properly (replace
const scaleFactor = display.scaleFactor
withconst scaleFactor = 1
)