mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-15 05:35:01 +00:00
BrowserWindow: Disable SetPosition 'workaround'
It doesn't make sense to do this adjustment for set only but not for get. Neither is this done for SetBounds, so it should be either fully consistent or left up to the application to deal with it.
This commit is contained in:
@@ -749,11 +749,10 @@ public class BrowserWindow : ApiBase
|
||||
{
|
||||
// Workaround Windows 10 / Electron Bug
|
||||
// https://github.com/electron/electron/issues/4045
|
||||
if (isWindows10())
|
||||
{
|
||||
x = x - 7;
|
||||
}
|
||||
|
||||
////if (isWindows10())
|
||||
////{
|
||||
//// x = x - 7;
|
||||
////}
|
||||
this.CallMethod2(x, y);
|
||||
}
|
||||
|
||||
@@ -767,11 +766,10 @@ public class BrowserWindow : ApiBase
|
||||
{
|
||||
// Workaround Windows 10 / Electron Bug
|
||||
// https://github.com/electron/electron/issues/4045
|
||||
if (isWindows10())
|
||||
{
|
||||
x = x - 7;
|
||||
}
|
||||
|
||||
////if (isWindows10())
|
||||
////{
|
||||
//// x = x - 7;
|
||||
////}
|
||||
this.CallMethod3(x, y, animate);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user