From 25f7c4813dcd943d1521b12de86ac579f37248dd Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Thu, 4 Nov 2010 23:07:32 +0200 Subject: [PATCH] Magic stuff in detecting drop area --- gui/shipBrowser.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gui/shipBrowser.py b/gui/shipBrowser.py index dd5a2b25e..adc038263 100644 --- a/gui/shipBrowser.py +++ b/gui/shipBrowser.py @@ -1489,6 +1489,7 @@ class FitItem(wx.Window): mspos = self.mainFrame.fitMultiSwitch.GetPosition() cpagewnd = self.mainFrame.fitMultiSwitch.GetCurrentPage() fvrect = cpagewnd.GetRect() + fvpos = cpagewnd.GetPosition() fvpos = cpagewnd.ClientToScreen(fvpos) mspos = self.mainFrame.fitMultiSwitch.ClientToScreen(mspos) @@ -1497,6 +1498,8 @@ class FitItem(wx.Window): msrect.x = mspos.x msrect.y = mspos.y msrect.height -= fvrect.height + fvrect.y -= msrect.height + print fvrect, msrect, pos if fvrect.Contains(pos): wx.PostEvent(self.mainFrame, FitSelected(fitID=self.fitID)) elif msrect.Contains(pos):