mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 04:58:11 +02:00
cocoa: checking if coordinates flip in needed, when showing popup menu. bug #35975
git-svn-id: trunk@61708 -
This commit is contained in:
parent
9ce6b19137
commit
facd13195f
@ -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