We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24164ca commit c1dce5cCopy full SHA for c1dce5c
native/Avalonia.Native/src/OSX/WindowBaseImpl.mm
@@ -94,6 +94,9 @@
94
if(hasPosition)
95
{
96
SetPosition(lastPositionSet);
97
+ } else
98
+ {
99
+ [Window center];
100
}
101
102
UpdateStyle();
@@ -287,12 +290,12 @@
287
290
288
291
289
292
@try {
293
+ lastSize = NSSize {x, y};
294
+
295
if (!_shown) {
296
BaseEvents->Resized(AvnSize{x, y}, reason);
297
298
- lastSize = NSSize {x, y};
-
299
if(Window != nullptr) {
300
[Window setContentSize:lastSize];
301
@@ -577,7 +580,6 @@
577
580
[Window setContentMaxSize:lastMaxSize];
578
581
579
582
[Window setOpaque:false];
- [Window center];
583
584
if (lastMenu != nullptr) {
585
[GetWindowProtocol() applyMenu:lastMenu];
0 commit comments