mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-02 03:42:01 +02:00
Merged revision(s) 61708 #facd13195f from trunk:
cocoa: checking if coordinates flip in needed, when showing popup menu. bug #35975 ........ git-svn-id: branches/fixes_2_0@62459 -
This commit is contained in:
parent
81bb1a5151
commit
47ad0f79ca
@ -848,7 +848,10 @@ begin
|
||||
if Assigned(view) then
|
||||
begin
|
||||
view.lclScreenToLocal(px, py);
|
||||
py := Round(view.frame.size.height - py);
|
||||
// have to flip again, because popUpMenuPositioningItem expects point
|
||||
// to be in View coordinates and it does respect Flipped flag
|
||||
if not view.isFlipped then
|
||||
py := Round(view.frame.size.height - py);
|
||||
end;
|
||||
end;
|
||||
res := TCocoaMenu(APopupMenu.Handle).popUpMenuPositioningItem_atLocation_inView(
|
||||
|
Loading…
Reference in New Issue
Block a user