Comments (2)
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"
from nw.js.
@vulcan9 neither of your suggestions make a difference. Scaling was already "1".
from nw.js.
Related Issues (20)
- Versions v0.73.0, v0.74.0, v0.75.0, v0.75.1, v0.76.0, and v0.76.1 of "nwjs-v0.##.#-linux-x64" All Crash and Fail On Linux
- drag file to the desktop
- NWJS not supported for Mac M1? HOT 1
- Cloudflare can distinguish between NW.js and Chromium from <webview> HOT 3
- URL.createObjectURL fails on 0.76.1 HOT 2
- Certificate expired error HOT 1
- nw.js apps crash when a tray icon is used before a window has been created.
- Having nw.Window.get().evalNWBin inside a compiled js file (bin) crashes the app (only on normal flavor)
- "Mainfest file missing or unreadable" in barebones project HOT 2
- `webkitSpeechRecognition` always throws a network error HOT 1
- video playing without voice HOT 1
- [v0.81.0] worker_threads doesn't work with node.js in nwjs HOT 14
- hardware device access documentation BLE
- `win.maximize()` on hidden window broken in Windows
- Cannot code sign macOS ARM64 build HOT 1
- NW.js 0.77.0 64Bit (Normal & SDK) cannot be started under Windows 8 cause of DLL Error HOT 2
- Cannot generate executable stops with error -> "package.json not found in srcDir file glob patterns" HOT 2
- Mouse right click options not working after latest updates HOT 3
- Doplik trojan detected in v0.77 for Windows HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nw.js.