Open sysrage opened 1 year ago
how about this?
let bounds = nw.Screen.screens[0].bounds;
let scaleFactor = nw.Screen.screens[0].scaleFactor;
nw.Window.open('a.html', {
height: bounds.height * scaleFactor,
width: bounds.width * scaleFactor
});
You can also force the scaleFactor value to be fixed. (#5675 )
"chromium-args" : "--force-device-scale-factor=1"
@vulcan9 neither of your suggestions make a difference. Scaling was already "1".
Issue Type
Before opening an issue, please search and see if it has already been raised.
Current/Missing Behavior
In Windows, opening a window with
height
andwidth
based onnw.Screen.screens[0].bounds
doesn't actually fill the screen. This does work properly in both macOS and Linux.Expected/Proposed Behavior
When setting a window size to fill the screen, it should fill the screen.
Additional Info
Note that these bounds do match the resolution size, but the window that's created is smaller.