mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-04 19:10:09 +01:00
Use default position for PopupMenu in demo.agw.AUI.AuiFrame
This commit is contained in:
@@ -2355,12 +2355,7 @@ class AuiFrame(wx.Frame):
|
||||
m4.SetBitmap(bmp)
|
||||
menuPopup.Append(m4)
|
||||
|
||||
# line up our menu with the button
|
||||
rect = tb.GetToolRect(event.GetId())
|
||||
pt = tb.ClientToScreen(rect.GetBottomLeft())
|
||||
pt = self.ScreenToClient(pt)
|
||||
|
||||
self.PopupMenu(menuPopup, pt)
|
||||
self.PopupMenu(menuPopup)
|
||||
|
||||
# make sure the button is "un-stuck"
|
||||
tb.SetToolSticky(event.GetId(), False)
|
||||
|
||||
Reference in New Issue
Block a user