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

Fixes #658
This commit is contained in:
rdb 2019-07-29 13:07:26 +02:00
parent 224a32090f
commit 7ab377f28e

View File

@ -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)