mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
WebPrefrences.ZoomFactor is int instead of double #867
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)@FlorianRappl commented on GitHub (Apr 2, 2023):
Yes, I think this can be fixed and that the fix would be indeed as simple as the suggestion. Do you want to make a PR on this? Thanks!
@Yuvix25 commented on GitHub (Apr 2, 2023):
Sure, I'll make one!
@FlorianRappl commented on GitHub (Apr 3, 2023):
Thanks! Merged and will be part of the next release. 🍻
@GregorBiswanger commented on GitHub (Apr 3, 2023):
Will be taken into account in the next update release.
Thank you @Yuvix25 for your PR.