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:
softworkz
2025-11-09 02:27:41 +01:00
parent ed7cc434ea
commit 402147b8ef

View File

@@ -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);
}