mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
UPD: improve the postion of Sharing Service Picker Popover on macOS 13+
(cherry picked from commit 57123c9be6)
This commit is contained in:
parent
935e5a1974
commit
5b8e7ac9d5
1 changed files with 2 additions and 2 deletions
|
|
@ -521,10 +521,10 @@ begin
|
|||
point:= control.ScreenToClient( Mouse.CursorPos );
|
||||
popupNSRect.origin.x:= point.X;
|
||||
popupNSRect.origin.y:= point.Y;
|
||||
popupNSRect.size:= NSZeroSize;
|
||||
popupNSRect.size:= NSMakeSize( 1, 1 );
|
||||
|
||||
picker:= NSSharingServicePicker.alloc.initWithItems( cocoaArray );
|
||||
picker.showRelativeToRect_ofView_preferredEdge( popupNSRect, NSView(control.handle) , NSMinYEdge );
|
||||
picker.showRelativeToRect_ofView_preferredEdge( popupNSRect, NSView(control.handle) , NSMaxXEdge );
|
||||
picker.release;
|
||||
end;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue