mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
changed position of popup menu
This commit is contained in:
parent
1620f057b0
commit
c26112c39d
1 changed files with 2 additions and 1 deletions
|
|
@ -78,7 +78,8 @@ class ButtonWithOptions(QtWidgets.QFrame):
|
|||
self.options_btn.setFixedHeight(self.main_btn.height())
|
||||
|
||||
def _on_options_click(self):
|
||||
point = self.mapToGlobal(self.rect().bottomLeft())
|
||||
pos = self.main_btn.rect().bottomLeft()
|
||||
point = self.main_btn.mapToGlobal(pos)
|
||||
self.options_menu.popup(point)
|
||||
|
||||
def _on_trigger(self, action):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue