Browse Source

dgui: fix option menu's cancelFrame not working in scrolled frame

Fixes #658
rdb 6 years ago
parent
commit
7ab377f28e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      direct/src/gui/DirectOptionMenu.py

+ 1 - 0
direct/src/gui/DirectOptionMenu.py

@@ -77,6 +77,7 @@ class DirectOptionMenu(DirectButton):
             state = 'normal')
             state = 'normal')
         # Make sure this is on top of all the other widgets
         # Make sure this is on top of all the other widgets
         self.cancelFrame.setBin('gui-popup', 0)
         self.cancelFrame.setBin('gui-popup', 0)
+        self.cancelFrame.node().setBounds(OmniBoundingVolume())
         self.cancelFrame.bind(DGG.B1PRESS, self.hidePopupMenu)
         self.cancelFrame.bind(DGG.B1PRESS, self.hidePopupMenu)
         # Default action on press is to show popup menu
         # Default action on press is to show popup menu
         self.bind(DGG.B1PRESS, self.showPopupMenu)
         self.bind(DGG.B1PRESS, self.showPopupMenu)