зеркало из https://github.com/electron/electron.git
fix: `win.center()` on Windows (#42197)
fix: win.center() on Windows Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
Родитель
e4bcd82590
Коммит
b029f38750
|
@ -1085,7 +1085,7 @@ void NativeWindowViews::Center() {
|
|||
#else
|
||||
HWND hwnd = GetAcceleratedWidget();
|
||||
gfx::Size size = display::win::ScreenWin::DIPToScreenSize(hwnd, GetSize());
|
||||
gfx::CenterAndSizeWindow(hwnd, hwnd, size);
|
||||
gfx::CenterAndSizeWindow(nullptr, hwnd, size);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче