]> git.saurik.com Git - wxWidgets.git/commitdiff
Apparently wxPopupWindow position is not screen relative any longer
authorRobin Dunn <robin@alldunn.com>
Mon, 29 Dec 2003 23:21:38 +0000 (23:21 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 29 Dec 2003 23:21:38 +0000 (23:21 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25035 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/demo/wxPopupWindow.py

index ad769d447d3ea53606260054ac9f41849dea994d..cc4d71b83fc04a1a651aefc91f70884eb10e5fd2 100644 (file)
@@ -57,7 +57,7 @@ class TestPopup(wx.PopupWindow):
 
     def OnMouseLeftDown(self, evt):
         self.ldPos = evt.GetEventObject().ClientToScreen(evt.GetPosition())
-        self.wPos = self.GetPosition()
+        self.wPos = self.ClientToScreen((0,0))
         self.CaptureMouse()
 
     def OnMouseMotion(self, evt):