mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-06 13:44:35 +00:00
WebPrefrences.ZoomFactor is int instead of double #864
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Yuvix25 on GitHub (Apr 2, 2023).
I want to make my app resolution fixed to 1920x1080 no matter what's the screen resolution, while still keeping the app full screen. To achieve that, I tried the following:
However, this did not work, as
ZoomFactoris expecting an int, not a double, unlike the original implementation in Electron.JS where it is indeed a double.Can this be fixed?
(From a quick look at the source code, it seems as the only change necessary is
public int ZoomFactor { get; set; }topublic double ZoomFactor { get; set; }, but I'm not entirely sure, so I prefer not posting this as a PR)