mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
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')
|
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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user