Browse Source

fix popup positioning on resize

pull/1977/head
Dan Walmsley 8 years ago
parent
commit
0088d9d421
  1. 12
      src/Avalonia.Native.OSX/window.mm

12
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)

Loading…
Cancel
Save