Skip to content

Commit

Permalink
Map menu coordinates to global before showing. (#1137)
Browse files Browse the repository at this point in the history
  • Loading branch information
corranwebster authored Jun 30, 2022
1 parent bd4a7bc commit bdc80a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyface/ui/qt4/widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ def _observe_control_context_menu(self, remove=False):
def _handle_control_context_menu(self, pos):
""" Signal handler for displaying context menu. """
if self.control is not None and self.context_menu is not None:
pos = self.control.mapToGlobal(pos)
menu = self.context_menu.create_menu(self.control)
menu.show(pos.x(), pos.y())

Expand Down

0 comments on commit bdc80a3

Please sign in to comment.