Commit facd1319 authored by dmitry's avatar dmitry
Browse files

cocoa: checking if coordinates flip in needed, when showing popup menu. bug #35975

git-svn-id: trunk@61708 -
parent 9ce6b191
......@@ -848,7 +848,10 @@ begin
if Assigned(view) then
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);
res := TCocoaMenu(APopupMenu.Handle).popUpMenuPositioningItem_atLocation_inView(
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment