зеркало из https://github.com/AvaloniaUI/Avalonia.git
Fix window incorrect positioning with window startup location CenterScreen on MacOS
This commit is contained in:
Родитель
f03b9c61d1
Коммит
5d2b9edec3
|
@ -151,6 +151,14 @@ HRESULT WindowBaseImpl::Hide() {
|
|||
|
||||
@autoreleasepool {
|
||||
if (Window != nullptr) {
|
||||
auto frame = [Window frame];
|
||||
|
||||
AvnPoint point;
|
||||
point.X = frame.origin.x;
|
||||
point.Y = frame.origin.y + frame.size.height;
|
||||
|
||||
lastPositionSet = ConvertPointY(point);
|
||||
hasPosition = true;
|
||||
[Window orderOut:Window];
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче