diff --git a/src/Avalonia.Native.OSX/window.mm b/src/Avalonia.Native.OSX/window.mm index cc23d27f13..e5ce0977cb 100644 --- a/src/Avalonia.Native.OSX/window.mm +++ b/src/Avalonia.Native.OSX/window.mm @@ -156,6 +156,7 @@ public: @autoreleasepool { [Window setContentSize:NSSize{x, y}]; + return S_OK; } } @@ -803,6 +804,17 @@ protected: { return NSWindowStyleMaskBorderless; } + + virtual HRESULT Resize(double x, double y) + { + @autoreleasepool + { + [Window setContentSize:NSSize{x, y}]; + + [Window setFrameTopLeftPoint:ToNSPoint(ConvertPointY(lastPositionSet))]; + return S_OK; + } + } }; extern IAvnPopup* CreateAvnPopup(IAvnWindowEvents*events)