dgui: fix option menu's cancelFrame not working in scrolled frame
Fixes #658
This commit is contained in:
parent
224a32090f
commit
7ab377f28e
|
|
@ -77,6 +77,7 @@ class DirectOptionMenu(DirectButton):
|
|||
state = 'normal')
|
||||
# Make sure this is on top of all the other widgets
|
||||
self.cancelFrame.setBin('gui-popup', 0)
|
||||
self.cancelFrame.node().setBounds(OmniBoundingVolume())
|
||||
self.cancelFrame.bind(DGG.B1PRESS, self.hidePopupMenu)
|
||||
# Default action on press is to show popup menu
|
||||
self.bind(DGG.B1PRESS, self.showPopupMenu)
|
||||
|
|
|
|||
Loading…
Reference in New Issue