Fix for maximized case of stats window

This commit is contained in:
HomeWorld
2010-11-26 15:46:28 +02:00
parent 1410d11678
commit 24f0beac34
2 changed files with 14 additions and 3 deletions

View File

@@ -44,7 +44,13 @@ class ItemStats(ContextMenu):
elif reuse:
lastWnd = self.mainFrame.GetActiveStatsWindow()
pos = lastWnd.GetPosition()
dlg=ItemStatsDialog(stuff, context.capitalize() if context not in self.REPLACES else self.REPLACES[context], pos)
maximized = lastWnd.IsMaximized()
if not maximized:
size = lastWnd.GetSize()
else:
size = wx.DefaultSize
pos = wx.DefaultPosition
dlg=ItemStatsDialog(stuff, context.capitalize() if context not in self.REPLACES else self.REPLACES[context], pos, size, maximized)
lastWnd.closeEvent(None)
else: