Skip to content

Commit 36c5d49

Browse files
committed
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.
1 parent b2c5b2b commit 36c5d49

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/ElectronNET.API/API/BrowserWindow.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -748,10 +748,10 @@ public void SetPosition(int x, int y)
748748
{
749749
// Workaround Windows 10 / Electron Bug
750750
// https://github.com/electron/electron/issues/4045
751-
if (isWindows10())
752-
{
753-
x = x - 7;
754-
}
751+
////if (isWindows10())
752+
////{
753+
//// x = x - 7;
754+
////}
755755
this.CallMethod2(x, y);
756756
}
757757

@@ -765,10 +765,10 @@ public void SetPosition(int x, int y, bool animate)
765765
{
766766
// Workaround Windows 10 / Electron Bug
767767
// https://github.com/electron/electron/issues/4045
768-
if (isWindows10())
769-
{
770-
x = x - 7;
771-
}
768+
////if (isWindows10())
769+
////{
770+
//// x = x - 7;
771+
////}
772772
this.CallMethod3(x, y, animate);
773773
}
774774

0 commit comments

Comments
 (0)